in reply to Re: Re: In-place file manipulation
in thread In-place file manipulation

Ehm ... the only changes you'd have to make so that this does work under Win2k is to use move /Y<code> instead of <code>mv and to put perl before the script.pl.

And you might even do it like this:

perl script.pl < source.txt > result.txt && move /Y result.txt source. +txt
Where the && means "execute the second command only if the first one did not return an error"

Jenda
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
   -- Rick Osborne

Edit by castaway: Closed small tag in signature