Sorting :

Hi ....
iam having a file with 20,000 rows and 56 colums.

Iam trying to sort a file ....for that iam using 'sort' command.
If iam having 3 and 5 key colums etc ... as numerical this 'sort' command will work? what ihave to do ?

sample example :

E100|0|19940102|1|11111|E003
E100|1|19940203|2|11123|E000
E102|0|19950230|0|22222|E003
E104|0|19930730|4|55555|E003
E104|4|19940604|3|55554|E003
E104|0|19930730|0|55553|E003

Help me ......

check this on your system:

man sort

Hi Yogesh,
I have studied ....but still iam confused ...i have written like below ....t

sort +1 +2 +3n +4 +5n this is correct ?

can u give me code ....for key columns which numeric also .....

Hi
use
sort -| +1 -2 +2 -3 +3 -4 +4 -5 +5 -6

it seems you were missing the delimiter | and now you can cheer up