My goal was to replace (in place) any instance of
src="[random text i want to remove]http
with
src="http
Inside of an html file. The catch: I need to use AppleScript to do this. The code is as follows:
set myfile to "pathto/test.html"
do shell script "sed -i 's/src=\"*.+http/src=\"http/g' " & quoted form of myfile
This gives the error:
sed: 1: "pathto/test.html": command c expects \ followed by text
I'm not sure what this error means...hope someone can help!