|
Description
|
The following is a file with several comma-separated fields. Sorting on
field 2 followed by field 1 produces an incorrect order.
$ cat foo
100,abc,foo
101,def,foo
200,abc,foo
201,def,
300,abc,foo
301,def,foo
$ sort -t, -k2,2 -k1,1 foo
100,abc,foo
200,abc,foo
300,abc,foo
101,def,foo
301,def,foo
201,def,
xxxxx@xxxxx.com 2005-03-15 01:00:37 GMT
|