Quantcast
Channel: sed: unknown option to `s' - Ask Ubuntu
Browsing index pages (3 articles)

sed: unknown option to `s'

I am trying to use a shell script file in the Bash shell. In this script, 2 sed commands are there. The second sed command is following. sed -e s:MACRO_NAME:"${runmacro}":g \ -e...

View Article


Answer by PerlDuck for sed: unknown option to `s'

The error appears because your variables (at least some of them) contain colons (:) and you use a colon as the delimiter for the s/…/…/ command. Actually for the s:…:…: command in your case. When you...

View Article


Answer by muru for sed: unknown option to `s'

In the sed expression s:INFILE_PATH_NAME:"${filedir}"/"${filename}":g, there are five parts: the sed command s, the search pattern for that command (INFILE_PATH_NAME), the replacement text (whatever...

View Article
Browsing index pages (3 articles)


Latest Images