I have a file that has multiple columns separated by spaces. eg:
data1 data2 data3 data4
val1 val2 val3 val4
I need to sort a file based on values ββin different columns, for example, sometime based on the value of column 1, sometime based on the value of col2, etc.
I was thinking of a sort command, but couldn't figure out how to use it to accomplish this.
Thanx,
source
share