roho has asked for the wisdom of the Perl Monks concerning the following question:
Windows does not work with the equivalent command line:
perl -p -i -e "s/old/new/" *.txt
I have tried using -MFile::Glob and -MFile::DosGlob, with and without
<>'s surrounding the file pattern,
and I tried glob(*.txt), but nothing works.
I keep getting the error message: The syntax of the command is incorrect.
Has anyone been down this road before? What am I missing?
"Its not how hard you work, its how much you get done."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File Globbing in Windows One-Liner
by toolic (Bishop) on Jul 21, 2009 at 02:44 UTC | |
by roho (Bishop) on Jul 22, 2009 at 07:40 UTC | |
|
Re: File Globbing in Windows One-Liner
by ikegami (Patriarch) on Jul 21, 2009 at 03:16 UTC | |
by roho (Bishop) on Jul 21, 2009 at 08:14 UTC | |
by ikegami (Patriarch) on Jul 21, 2009 at 14:18 UTC | |
by Corion (Patriarch) on Jul 21, 2009 at 14:23 UTC | |
|
Re: File Globbing in Windows One-Liner
by QM (Parson) on Jul 21, 2009 at 19:57 UTC |