[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#7323: sort bug
From: |
Pádraig Brady |
Subject: |
bug#7323: sort bug |
Date: |
Wed, 03 Nov 2010 16:03:09 +0000 |
User-agent: |
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.