in reply to Re^2: s// All Files In Directory
in thread s// All Files In Directory
Learn to be good with the command line. Being saddled with Windows is no excuse; if you can't stand the Windows command line (I can't), install Cygwin.
-p process line-by-line and print the results -i operate on files in place -e execute the following code Hence: perl -p -i -e 's/foo/bar/g' *
Aaron B.
My Woefully Neglected Blog, where I occasionally mention Perl.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: s// All Files In Directory
by perl.j (Pilgrim) on Apr 02, 2012 at 20:39 UTC | |
by stevieb (Canon) on Apr 02, 2012 at 20:53 UTC | |
by Anonymous Monk on Apr 02, 2012 at 20:58 UTC | |
by perl.j (Pilgrim) on Apr 02, 2012 at 22:54 UTC | |
by vagabonding electron (Curate) on Apr 03, 2012 at 09:53 UTC | |
by aaron_baugher (Curate) on Apr 03, 2012 at 11:41 UTC | |
by vagabonding electron (Curate) on Apr 03, 2012 at 11:53 UTC |