in reply to get the line of ith occurrence of '>' without OPENING THE FILE

If you're on some kind of UNIX you can probably do

split -b100M < hugefile

This will create files xaa, xab, xac etc, each with 100 MB of data from the file.

"man split" is your friend.

/Hacker
  • Comment on Re: get the line of ith occurrence of '>' without OPENING THE FILE