I'm trying to use
sed, but my pattern contains
 brackets and slashes (
I've tried quotes, but it doesn't help.
How do I escape it?
$ sed -i'.bak' "s/^includes =/;includes =/g" *.make sed: 1: "s/^includes =/;includ ...": unterminated substitute in regular expression $ sed -i'.bak' 's/^includes = includes/;includes/g' *.make sed: 1: "s@^includes = i ...": unbalanced brackets () $ sed -i'.bak' 's/^includes = foo/includes//;includes = foo/includes//g' *.make sed: 1: "s/^includes = foo/inc ...": bad flag in substitute command: '/'