GNU bug report logs - #7323
sort bug

Previous Next

Package: coreutils;

Reported by: Thomas A Schweiger <tom.schweiger <at> acxiom.com>

Date: Wed, 3 Nov 2010 14:53:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 7323-done <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Thomas A Schweiger <tom.schweiger <at> acxiom.com>
Cc: 7323-done <at> debbugs.gnu.org
Subject: Re: bug#7323: sort bug
Date: Wed, 03 Nov 2010 16:03:09 +0000
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.




This bug report was last modified 14 years and 203 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.