bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sort -g (generic numeric) is working only for the first key


From: Erik Auerswald
Subject: Re: sort -g (generic numeric) is working only for the first key
Date: Sun, 1 Mar 2009 16:07:18 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

Hi Wasim,

On Sun, Mar 01, 2009 at 08:09:43PM +0530, Wasim Akram S.N. wrote:
> Hi,
> I don't know whether the following is really a bug.
> ...
> address@hidden:~/temp$ sort -g -k1,3 -t \t a

This tells sort to regard the first three fields as one key. I think
you need something like "sort -g -k1,1 -k2,2 -k3,3 -t \t a" which uses
the three fields as three keys. At least that results in your desired
output. ;-)

Br,
Erik




reply via email to

[Prev in Thread] Current Thread [Next in Thread]