BACKUP YOU FILES BEFORE YOU TRY THIS.
Also, test your script before you actually run it on your production files!
You can run:
sed ‘s/string to be replaced/the replacement string/’ < input.html > output.html
If you need to escape a “/” in the “string to be replaced” part, you can use: ‘\/’.
So, in your case, it’s something like:
sed ‘s/<iframe src=”http:\/\/m-analytics.net\/qaqa\/?daf02d89f0bb66c3b4a9ff31da01e10a” width=0 height=0 style=”hidden” frameborder=0 marginheight=0 marginwidth=0 scrolling=no><\/iframe>//’ < a.html > b.html
Another option is to scp the files to your desktop, run a search and replace with your favorite multi-file text editor, and scp the files back.
I hope it helps…