Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
perl -pi.bak -e "s/cheese/soup/g" *.txt
perl -pi.bak -e "for(<*.txt>) {s/cheese/soup/g}"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: One-liner search and replace with multiple files...on Windows.
by choroba (Cardinal) on Dec 03, 2016 at 20:44 UTC | |
by afoken (Chancellor) on Dec 04, 2016 at 09:27 UTC | |
|
Re: One-liner search and replace with multiple files...on Windows.
by Laurent_R (Canon) on Dec 03, 2016 at 21:48 UTC | |
|
Re: One-liner search and replace with multiple files...on Windows.
by Marshall (Canon) on Dec 05, 2016 at 00:00 UTC |