----- Original Message -----
From: "Matt Billenstein" <[EMAIL PROTECTED]>
To: "CLUG TECH" <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 1:35 AM
Subject: sort broken?
| Hi,
|
| Shouldn't items 10-14 come after item 9 in one of the examples below? Or
am
| I doing something wrong?
|
| [mbillens@bob mbillens]$ cat s.txt
| 0 thread B[ 1]
| 0 thread B[ 2]
| 0 thread B[ 3]
| 0 thread B[ 4]
| 0 thread B[ 5]
| 0 thread B[ 6]
| 0 thread B[ 7]
| 0 thread B[ 8]
| 0 thread B[ 9]
| 4 thread B[ 8001]
| 0 thread B[ 10]
| 0 thread B[ 11]
| 0 thread B[ 12]
| 0 thread B[ 13]
| 0 thread B[ 14]
| [mbillens@bob mbillens]$ sort -g -k 13,17 s.txt
| 0 thread B[ 1]
| 0 thread B[ 10]
| 0 thread B[ 11]
| 0 thread B[ 12]
| 0 thread B[ 13]
| 0 thread B[ 14]
| 0 thread B[ 2]
| 0 thread B[ 3]
| 0 thread B[ 4]
| 0 thread B[ 5]
| 0 thread B[ 6]
| 0 thread B[ 7]
| 0 thread B[ 8]
| 0 thread B[ 9]
| 4 thread B[ 8001]
| [mbillens@bob mbillens]$ sort -n -k 13,17 s.txt
| 0 thread B[ 1]
| 0 thread B[ 10]
| 0 thread B[ 11]
| 0 thread B[ 12]
| 0 thread B[ 13]
| 0 thread B[ 14]
| 0 thread B[ 2]
| 0 thread B[ 3]
| 0 thread B[ 4]
| 0 thread B[ 5]
| 0 thread B[ 6]
| 0 thread B[ 7]
| 0 thread B[ 8]
| 0 thread B[ 9]
| 4 thread B[ 8001]
|
| Both work as expected on an SGI box running IRIX.
| The sort -n example works as expected on a Solaris box...
|
| thx
|
| m
|
| Matt Billenstein
| mbillens (at) one (dot) net
| http://w3.one.net/~mbillens/
|
|
|
_______________________________________________
Bug-textutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-textutils