And while you're at it, you may as well remember where lines 1 through 99 where located also.
It will take a local file, of ( 8*number-of-lines ) bytes, to hold the index, and roughly the same amount of time as wc -l.
With a slightly more sophisticated indexer, the size of the index file can be reduced by half.
In reply to Re: Read Some lines in Tera byte file
by BrowserUk
in thread Read Some lines in Tera byte file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |