2007/10/11, PeiYu Zeng <[EMAIL PROTECTED]>:
> Hello,
>
> Can I modify the contents of a file, without creating a new one?
>

Yes.You can use perl one-liner to do that,

perl -pi.bak -e 'modify the current line if it match some conditions' file

But actually this has been creating a new file,you just wouldn's see it.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to