I need to do strip a string out of a bunch of html files, so i started reading up on sed and it looks nice.... now sed writes to stdout and I haven't been able to figure out how to get it to write to a file.
so I thought i could do something of this sort:
find ./ -iname '*.html'
-exec sed s/'<script language="JavaScript" src="\/js\/omi\/jsc\/s_code_remote.js"><\/script>'//g '{}' \> '{}'.tmp \;
-exec mv '{}'.tmp '{}' \;
How do I get it to redirect the output in the exec statement? the escapes are killing me....
so I thought i could do something of this sort:
find ./ -iname '*.html'
-exec sed s/'<script language="JavaScript" src="\/js\/omi\/jsc\/s_code_remote.js"><\/script>'//g '{}' \> '{}'.tmp \;
-exec mv '{}'.tmp '{}' \;
How do I get it to redirect the output in the exec statement? the escapes are killing me....