in reply to
scalable chomping
sed s/X/Y/ data.txt | sed /a/b/ >out.txt
[download]
should be scalable in programming and execution time. I've not seen a benchmark shootout on substitutions...
Comment on
Re: scalable chomping
Download
Code
In Section
Seekers of Perl Wisdom