in reply to "ack" and replace in a directory... in Windows?
Populate @ARGV
So $ perl -i -p -e ' BEGIN { @ARGV = `ack -f --perl`; } s/foo/bar/g; "
See Iterator::Files and Iterator::Diamond
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: "ack" and replace in a directory... in Windows?
by mascip (Pilgrim) on Feb 29, 2012 at 12:17 UTC | |
by tye (Sage) on Feb 29, 2012 at 13:51 UTC |