dvergin has asked for the wisdom of the Perl Monks concerning the following question:
Now I need to make a simple change in all files in all subdirectories of the current directory. So here is a learning opportunity. I have Camel at my elbow and the docs on the screen -- but the switch options are a bit dizzying.
Here's my attempt: %perl -ne 's/old/new/g' ./*/* This is mission-critical so I need to get it right. (I am backing up the whole mess.) Am I on the right track?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need one-liner to s///g in all sub-dirs
by rob_au (Abbot) on Aug 25, 2001 at 07:22 UTC | |
by dvergin (Monsignor) on Aug 25, 2001 at 07:40 UTC | |
by rob_au (Abbot) on Aug 25, 2001 at 08:14 UTC | |
by dvergin (Monsignor) on Aug 25, 2001 at 09:18 UTC | |
by blakem (Monsignor) on Aug 25, 2001 at 09:32 UTC | |
| |
by rob_au (Abbot) on Aug 25, 2001 at 09:47 UTC | |
| |
by chipmunk (Parson) on Aug 25, 2001 at 16:47 UTC | |
|
Re: Need one-liner to s///g in all sub-dirs
by runrig (Abbot) on Aug 25, 2001 at 10:15 UTC |