We don't bite newbies here... much | |
PerlMonks |
Re: Sorting a text fileby McDarren (Abbot) |
on Mar 15, 2007 at 09:29 UTC ( [id://604948]=note: print w/replies, xml ) | Need Help?? |
You don't even need Perl for this. Assuming that you are on a *nix system (perhaps a poor assumption), then you could simply do:
Update: It turns out that MS-DOS also has a sort command (I never knew that!). So on a winders system, the following from a command prompt: (Assumes spaces between the 1st and 2nd fields, rather than tabs) Cheers,
In Section
Seekers of Perl Wisdom
|
|