I sometimes run into the problem where I need to replace just a few characters in files ~10Gb. As I only have 2Gb RAM, opening such a file with
nano will consume all system resources.
The way I do it now is I either do my changes with
sed, which is not very convenient, or I use a combination of
tail to split out a smaller part of the file, edit that, then
cat back together the pieces. Even less convenient.
So, does anyone know an editor that doesn't load the whole file into memory (or perhaps a switch I can use with
vim or another popular editor)?