mascip has asked for the wisdom of the Perl Monks concerning the following question:
Hello :o)
I have read here that one could use ack to search all replace all occurrences of a word in the files of a directory, by doing
$ perl -i -p -e's/foo/bar/g' $(ack -f --php)
This seems very nice, but it doesn't work "as it is" under Windows. Would anybody know how to make it work ?
My aim is simple : having a "template" directory for my modules, that i could copy and modify easily each time i want to start a new module.
Thank you for suggestions =)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: "ack" and replace in a directory... in Windows?
by BrowserUk (Patriarch) on Feb 29, 2012 at 03:37 UTC | |
by mascip (Pilgrim) on Feb 29, 2012 at 12:17 UTC | |
by Anonymous Monk on Mar 01, 2012 at 03:44 UTC | |
by Anonymous Monk on Jul 23, 2012 at 22:55 UTC | |
|
Re: "ack" and replace in a directory... in Windows?
by petdance (Parson) on Feb 29, 2012 at 12:56 UTC | |
by mascip (Pilgrim) on Feb 29, 2012 at 17:41 UTC | |
|
Re: "ack" and replace in a directory... in Windows?
by Anonymous Monk on Feb 29, 2012 at 02:19 UTC | |
by mascip (Pilgrim) on Feb 29, 2012 at 12:17 UTC | |
by tye (Sage) on Feb 29, 2012 at 13:51 UTC |