如何编辑多 GB 的文本文件?Vim 不起作用 =( [英] How to edit multi-gigabyte text files? Vim doesn't work =(
本文介绍了如何编辑多 GB 的文本文件?Vim 不起作用 =(的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有任何编辑器可以编辑多 GB 的文本文件,也许只需一次将一小部分加载到内存中?Vim 好像处理不了 =(
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 =(
推荐答案
如果你在 *nix 上(并假设你只需要修改文件的一部分(很少)),你可以拆分文件(使用 split
命令),单独编辑它们(使用 awk
、sed
或类似的东西)并在完成后连接它们.
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
这篇关于如何编辑多 GB 的文本文件?Vim 不起作用 =(的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文