How to edit multi-gigabyte text files? Vim doesn&#

2020-01-27 09:48发布

Are there any editors that can edit multi-gigabyte text files, perhaps by only loading small portions into memory at once? It doesn't seem like Vim can handle it =(

15条回答
闹够了就滚
2楼-- · 2020-01-27 10:33

If you are on *nix (and assuming you have to modify only parts of file (and rarely)), you may split the files (using the split command), edit them individually (using awk, sed, or something similar) and concatenate them after you are done.

cat file2 file3 >> file1
查看更多
再贱就再见
3楼-- · 2020-01-27 10:33

The only thing I've been able to use for something like that is my favorite Mac hex editor, 0XED. However, that was with files that I considered large at tens of megabytes. I'm not sure how far it will go. I'm pretty sure it only loads parts of the file into memory at once, though.

查看更多
家丑人穷心不美
4楼-- · 2020-01-27 10:35

In the past I opened up to a 3 gig file with this tool http://csved.sjfrancke.nl/

查看更多
登录 后发表回答