I have a 250 MB text file, all in one line.
In this file I want to replace
a characters with
sed -e "s/a/b/g" < one-line-250-mb.txt
It fails with:
sed: couldn't re-allocate memory
It seems to me that this kind of task could be performed inline without allocating much memory.
Is there a better tool for the job, or a better way to use
GNU sed version 4.2.1
Ubuntu 12.04.2 LTS
1 GB RAM