I was trying to execute this command:
sudo sed -i 's/^\$projectroot.*/\$projectroot = \\"\\/home\\/repo\\";/' /etc/gitweb.conf
It returned an error:
sed: -e expression #1, char 42: unknown option to `s'
I don't understand why s
is used in sed
command. Please help