[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fw: sort broken?
From: |
Matt Billenstein |
Subject: |
Fw: sort broken? |
Date: |
Wed, 18 Apr 2001 18:25:22 -0400 |
----- Original Message -----
From: "Matt Billenstein" <address@hidden>
To: "CLUG TECH" <address@hidden>
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?
|
| address@hidden 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]
| address@hidden 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]
| address@hidden 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/
|
|
|
- Fw: sort broken?,
Matt Billenstein <=