in reply to File Globbing in Windows One-Liner

Windows does not work with the equivalent command line:

Technically, it's a question of which shell you are using.

What am I missing

Hard to tell, you didn't show what's giving the error.

Replies are listed 'Best First'.
Re^2: File Globbing in Windows One-Liner
by roho (Bishop) on Jul 21, 2009 at 08:14 UTC
    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."

      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?