sorting a file using bash on a certain field
sorting a fihow should i sort a file on a certain field .....i am trying this....
awk 'substr($0, 471, 10)' filename | sort >> out
i.e. pick up the 471st position and 10 characters from there and pass each line to the sort command......
10 chars at postiion 471 are :
0500010001
1500010001
0500180020
0500180020
0500180020
0500180020
0500180020
0500180020
0500180020
0500180020
0500180020
0500180020
0500010001
1500010001
|