Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3
On 03/11/10 14:52, Thomas A Schweiger wrote:
>
> I have found an anomaly in the sort utility.
>
> If I sort on the 10th pipe delimited field using the command:
>
> sort -t\| -k 10 source.dat
That sorts from the 10th field on.
If you just want the 10th field then use -k10,10
If the field is numeric (and not fixed width) use -k10,10n
cheers,
Pádraig.