Hi, On Tuesday 10 May 2005 16:04, Ken Schneider wrote:
...
You can also use less to look at the file and it will show line numbers. Again because of the size it will take a very long time to open. If you know some of the text you can search with / followed with the search string.
Less wants to pre-compute line numbers, so it will pre-scan the entire file at start-up. If you are going to use Vim to extract portions of very large files, you'll do well to use the "-r" option or to use the synonymous alias "view". If Vim won't be editing the file, it does not need to do as much pre-processing and doesn't need to build all the structures needed to edit the file in-place. Nonetheless, I doubt it's going to be able to open a 39 GB file.
You can also use grep -n to search for any lines that have text you are looking for, this will show the line number of the line in the file.
-- Ken Schneider
Randall Schulz