On Dec 13, 2004, at 3:22 PM, Soren Harward wrote:
On Mon 13 Dec 2004 at 14:03:50, Grant Robinson said:I need to look at a large file (around 400 MB in size), and I am
wondering if anyone knows of a good editor (either GUI or command-line,
for Linux or OS X) that handles these large files well. I would like
something that does not try to load the entire file at once, so it will
be snappy. Suggestions? (and don't say VIM, because it tries to load
the entire file).
That's a lot of information. What is it? I'd be willing to bet that you
could use grep and/or sed (or just perl) to extract the info you need in a
more manageable form.
A mysqldump of a largish db. :)
If all you need to do is *view* it, then less would probably be the best
option. I use 'less' on several-hundred-meg log files occasionally, and the
only time it slows down is to computer the line numbers, which it does only
once per execution.
In this case I did just need to view it, and less worked great. But I needed to edit it, the question still remains, are there any editors that will work as well as less (it took less than a second to open, and only took 8-10 seconds seek down 900,000 lines. Any editors that can do that (or something close)?
Grant
--------------------
BYU Unix Users Group http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
