Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: sort large file

by borisz (Canon)
on Apr 01, 2004 at 09:16 UTC ( #341563=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://341563]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2018-08-18 17:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (185 votes). Check out past polls.

    Notices?