[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Some shell query



Hi LIst,


I have a text file like this
34 RADIO
2 RADWIN
1 RAGE
1 RAIL
1 RAU
3 RAU2
2 RE
2 RECEIVERS
13 RECEPTION
1 RECORDING
1 RECTIFIER
4 REF
3 REFURBISHED
4 REPEATER

I want to sort this by first word(here it is number).

Output should be like this

34 RADIO
13 RECEPTION
4 REF
4 REPEATER
3 RAU2
3 REFURBISHED
2 RADWIN
2 RE
2 RECEIVERS
1 RAGE
1 RAIL
1 RAU
1 RECORDING
1 RECTIFIER

How can I do this? Please anybody help.

Thanks in advanced.



--
Wishing you the very best of everything, always!!!
Kousik Maiti(কৌশিক মাইতি)
Registered Linux User #474025
Registered Ubuntu User # 28654

Reply to: