in reply to Re: Inplace editing, one liner, without a backup file?
in thread Inplace editing, dos one liner, without a backup file?

Thanks fletch. From reading the post you linked to, I also conclude that in place edit on multiple files with the "perl pie trick" works better from the cygwin command line than from the dos command line, where I get
C:\thomasdata\thomasprojects\fixHtml\t\structural\beginning_includes>p +erl -p -i -e "s/this/that/" *.* Can't open *.*: Invalid argument.
Well, one more reason to install cygwin I suppose, something I've been meaning to toy with for awhile. But even with cygwin, you automagically get .bak no matter what, if I understood that thread correctly.

Replies are listed 'Best First'.
Re^3: Inplace editing, one liner, without a backup file?
by holli (Abbot) on Aug 09, 2005 at 14:52 UTC
    workaround:
    for %f in (*.*) do perl -pi.bak -e "s/this/that/" %f & del %f.bak


    holli, /regexed monk/