How to mass Search & Replace in text files.

Lance F. Squire lance-5ZoueyuiTZhBDgjK7y7TUQ at public.gmane.org
Fri May 1 14:26:16 UTC 2009


One of the sites on my server has been infected with some malicious Java 
Script.

I can locate all the files with:

grep "Bad JS" `find . -name "*.html"`

Is there a way to modify this to replace the "Bad JS" with ""?

Or a find variant?


Thanks in advance,

Lance F. Squire
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list