Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^2: File Globbing in Windows One-Liner

by roho (Chancellor)
on Jul 21, 2009 at 08:14 UTC ( #781883=note: print w/replies, xml ) Need Help??

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 (Pope) 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?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://781883]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2020-02-28 22:17 GMT
Find Nodes?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?

    Results (127 votes). Check out past polls.