in reply to Re: File Globbing in Windows One-Liner
in thread File Globbing in Windows One-Liner

I am using ActiveState Perl 5.10 on Windows Vista in a command window initiated by cmd.exe.
The error is produced by the Perl one-liner:

perl -p -i -e "s/old/new/" *.txt

"Its not how hard you work, its how much you get done."

Replies are listed 'Best First'.
Re^3: File Globbing in Windows One-Liner
by ikegami (Patriarch) on Jul 21, 2009 at 14:18 UTC

    There's no syntax error in that. You said you tried stuff that gave you "The syntax of the command is incorrect."

    By the way, -i with no extension doesn't work in Windows.

      Maybe perl.exe is not installed on the Windows machine?