Since my paranoia turns on when I use -pi I often turn off paranoia (a biological process) and do something like
cat bigfile|perl -nle 's/escaped_old_ip/new_ip/g; print;' > newbigfile
You can also process files using the tie command, there are many modules which use it (Tie::). Good luck!
In reply to Re: How can I process large files with while(<>)?
by mattr
in thread How can I process large files with while(<>)?
by Ritter
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |