bug-textutils
[Top][All Lists]
Advanced

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

Re: Error in sort


From: Andrew D Jewell
Subject: Re: Error in sort
Date: Mon, 8 Apr 2002 12:38:19 -0400

Instead of

sort -k2 -k3n

you want to say

sort -k2,2 -k3n

otherwise, you're saying "from 2 to the end"

I don't like the semantics myself, but that's the way it goes.

adj


At 4:00 PM +0200 4/8/02, Andreas Erb wrote:
Hi,
while sorting a file I encountered a strange behavior:

sorting this file
a x 10
d y 1
b z 1
b x 1
c z 4
d x 3

with
sort -k2 -k3n tosort
b x 1
a x 10
d x 3
d y 1
b z 1
c z 4

but should be

b x 1
d x 3
a x 10
d y 1
b z 1
c z 4

Checked with sort 2.0.10 under Linux and 2.0.21 under cygwin

Regards
Hearp


_______________________________________________
Bug-textutils mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/bug-textutils




reply via email to

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