Emacs读取大文件〜14GB [英] Emacs To read Large Files ~14GB
问题描述
有没有办法增加它?我有一个内存为24 GB的系统!
为什么要编辑大量的14Gb文件?我相信想要这样做是错误的。
你没有时间阅读这么大的文件的所有(甚至大多数)。它是什么样的文件? (一些日志文件,一些MySQL转储文件???)
所以你正在搜索该文件中的一些特定模式。自己一个忙,写一个脚本(甚至一个程序)来做这个,并编辑(如果有关的话)你需要的大文件...
很可能你不在乎大部分文件的内容。
或将文件拆分成较小的部分(例如,使用 csplit
),以及编辑相关较小的块,然后使用 cat
重建巨大的文件
Recently I have downloaded emacs on my system to edit large files as it claims. When trying opening large files, the emacs gives me a problem that buffer size is exceeded.
Is there a way to increase it?! I have a system with memory of 24 GB!
Why do you want to edit huge 14Gb files? I believe it is wrong to want to do that.
You don't have the human time to read all (or even most) of such a huge file. What kind of file is it? (some log file, some MySQL dump file???)
So you are searching some specific pattern inside that file. Do yourself a favor, write a script (or even a program) to do that, and to edit (if relevant) your big file where needed...
Very probably, you don't care of most of the content of that huge file. Only a few lines matter to you.
Or split the file into smaller pieces (e.g. with csplit
), and edit the relevant smaller chunks, then rebuild the huge file with cat
这篇关于Emacs读取大文件〜14GB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!