bash$ more example
109 bar
111 b
111 a
1 10
9 foo
bash$ sort -k 1,1rn -k 2,2 example
111 a
111 b
1 10
109 bar
9 foo
It seems that the "n" is making sort ignore the separator, so it sorts
"1 10" as if it were the number 110. That doesn't seem to correspond
to the "info" page. It's OK without the "n".
On my sgi:
> sort -k 1,1rn -k 2,2 sort
111 a
111 b
109 bar
9 foo
1 10
version:
bash$ sort --version
sort (GNU textutils) 2.0a
Written by Mike Haertel.
[...]
bash$ rpm -q -f `which sort`
textutils-2.0a-2
This is a vanilla redhat 6.2 system.
_______________________________________________
Bug-textutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-textutils