I'm using ksh in Solaris ...
Say I have a simple 4 line file:
30 XB A
30 XB B
30 XB C
[COLOR=red yellow]30 XB A[/color]
I want to sort on the 1st column only and not have another
column (i.e. - 3rd column) influence my result:
I run something like...
sort -k0,1 file
...but, my return result is always:
30 XB A
[COLOR=red yellow]30 XB A[/color]
30 XB B
30 XB C
Where the last column seems to be influencing my result - I don't want that 3rd columnn to effect the sort - what am I doing wrong?
Say I have a simple 4 line file:
30 XB A
30 XB B
30 XB C
[COLOR=red yellow]30 XB A[/color]
I want to sort on the 1st column only and not have another
column (i.e. - 3rd column) influence my result:
I run something like...
sort -k0,1 file
...but, my return result is always:
30 XB A
[COLOR=red yellow]30 XB A[/color]
30 XB B
30 XB C
Where the last column seems to be influencing my result - I don't want that 3rd columnn to effect the sort - what am I doing wrong?