On Jul 19, 2004, at 10:56 AM, [EMAIL PROTECTED] wrote:
Hi,
I am trying to edit an ASCII file in place…
I tried …
perl -pi -ne "s/ERROR/TRACKED/g" status.log
Well, we definitely don't need -p and -n, since -p is -n plus some.
and received…
Can't do inplace edit without backup…
Okay, let's try using a backup:
perl -pi.bak -e "s/ERROR/TRACKED/g" status.log
I believe Activestate Perl for Windows requires this.
Hope that helps.
James
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>