Recursive find and replace

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: David A. Sinck
Dátum:  
Címzett: plug-discuss
Tárgy: Recursive find and replace


\_ SMTP quoth David Koopman on 1/11/2005 07:20 as having spake thusly:
\_
\_ Anybody have a quick easy way to do recursive find and replace?
\_
\_ Here is my complicated stab at it, but I must say this was a pain to
\_ write. I think there must be a utility for doing this to make this
\_ much much much easier?

find $TOPDIR -type f -exec perl -pi.bak -e 's/&10\.10\.0\.52&i/10.0.0.68/g' {} \;

Provides a nice backup in case one of us botches the RE.

Test before use. YMMV.
David
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss