in reply to sort large file

put the data in a database. DBD::SQLite is easy to use and quick. If you just want to sort the file once use sort -n file >newfile. Or quick and dirty perl -ne 'print if /^10/'.
Boris

Replies are listed 'Best First'.
Re: Re: sort large file
by Murcia (Monk) on Apr 01, 2004 at 09:26 UTC
    I will try "sort -n file > out" I need all ids! not only 10! ;-)
      I understand it in the way, that you are interested in only one id at a time. 10 was only a simple example.
      Boris