misc/141920: sort -k 3,1g is very slow
Stepan Koltsov
yozh at mx1.ru
Wed Dec 23 20:20:03 UTC 2009
The following reply was made to PR misc/141920; it has been noted by GNATS.
From: Stepan Koltsov <yozh at mx1.ru>
To: Lowell Gilbert <freebsd-bugs-local at be-well.ilk.org>
Cc: freebsd-gnats-submit at freebsd.org
Subject: Re: misc/141920: sort -k 3,1g is very slow
Date: Wed, 23 Dec 2009 22:42:54 +0300
On Wed, Dec 23, 2009 at 22:05, Lowell Gilbert
<freebsd-bugs-local at be-well.ilk.org> wrote:
> Stepan Koltsov <yozh at mx1.ru> writes:
>
>> 3. Run sort wih -k 3,1g:
>>
>> time cat txt | sort -k 3,1g > /dev/null
>>
>> It takes 4 seconds. It is too long.
>
> Does that actually mean anything useful?
> It's fields 3 to 1, right?
You are right. I thought it means sort by 1st, then by 3rd.
So, I think warning should be printed (or error).
S.
More information about the freebsd-bugs
mailing list