Dear All, Good day. Here i am facing some problem like below. file contains 12345 0001 090112 14385 0001 090112 13255 0001 090112 11345 0001 090112 ....
I want to sort ascending according to the first column. What will be the shell script.
cat sortfile 12345 0001 090112 14385 0001 090112 13255 0001 090112 11345 0001 090112 sort sortfile 11345 0001 090112 12345 0001 090112 13255 0001 090112 14385 0001 090112
Is that what you look for ?
hth
yes, but the thing is if the third column needs sorting. then ..
Dear Boss, Actually I got the solution sort +1 -1 filename.txt
great ,
I knew it should be easy. Keep learning