I'm trying to work up a
sed command for the command below. I'm trying search for
v=window.location.search.match in a file and replace it with
Here is what I have so far:
sed -i.bak 's/v=window.location.search.match/\<script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"\>\</script\>/d' myfile.txt
After running this I get the following error:
sed: -e expression #1, char 49: unknown option to `s'
I'm confused as to where I should be placing each
\ for escaping.