Is there any text editor, which can edit such file?
another method is to use
you will not find them. If you want to replace some lines in this file, you can look at with
on Wikipedia are some useful examples: http://en.wikipedia.org/wiki/Sed
Give it a go, if you like, but such big files become impractical if you want to do "normal" editing; eg, you don't want to go saving your edits too often; it will take too long :)
If it's for a one off,
Try Gvim if you really want edit such a big file.... I've just loaded a 3.9GB file into it, and all seems to be normal...
Here is an interesting link on the matter, at stackoverflow
Try joe. I just used it to edit a ~5G SQL dump file. It took about a minute to open the file and a few minutes to save it, with very little use of swap (on a system with 4G RAM).
According to this Wikipedia article Comparison of text editors VIM among others. I was going to suggest Geany but there is a ? in the field for large file support...
EDIT: I went ahead and tried with geany and gave up after waiting 10 minutes with 3 cores pegged and basically all my memory (virtual and physical) in use the entire time... Not conclusive since it might have managed to open it if I'd been more patient. I looked for and did not find any settings/preferences for handling large files differently as well.
I like fred.bear's answer best.