Hi experts,
I worked with the SED command and i want to replace a URL with the SED command in a configuration file.
In the configuration file i have this line: /owa
https://example.de/owa
And with the SED i want to replace this line so i used this command:
sed -e "s/owa
https:.*/owa https://example2.de/owa/g" /etc/apache2/sites-availab
le/test.co
nf
and i got this error message: sed: -e expression #1, char 27: unknown option to `s'
without the / the command works so how can i escape or use the / in the command?
I used your solutions and it works.