How can you escape special characters defined in a variable within sed? Basically like the syntax below
$ export SCOOBY_HOST=http://example.com/
$ sed -i "s/var scooby_host = \(.*\)/var scooby_host = '$SCOOBY_HOST'/" index.html
Error: sed: -e expression #1, char 54: unknown option to `s'
My attempts so far always cause this error
sed: -e expression #1, char 54: unknown option to `s'