sort -nk2 file.txt
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)sort /+10 file.txt
Cheers,
Darren :)
In reply to Re: Sorting a text file
by McDarren
in thread Sorting a text file
by rsriram
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |