How to mass Search & Replace in text files.

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


Robert P. J. Day wrote:
> or, recursively,
> 
>   $ perl -pi -e 's/fred/barney/' $(find . -name "*.html")
> 
> or some variation thereof.
> 
> rday

Looks Good to me!

I'll try it. :)

Lance
--
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