Working with sort using option -n gives unpredictable results.
All three following sort commands give wrong (unexpected) results:
sort -oout.out +0.7 -0.10 +0.94 -0.99n sort.txt
sort -oout.out +0.7 -0.10 +0.94 -0.99 -n sort.txt
sort -oout.out +0.7 -0.10 -n +0.94 -0.99 sort.txt
 
The command is supposed to sort the file first on columns 8-10 and within columns 8-10 on columns 95-99.
Using option -g instead of -n, seems to work correct.
 
I am working with Linux Red Hat 6.2 and sort version:
 
>sort --version
sort (GNU textutils) 2.0a
Written by Mike Haertel.
 
Institute for Pig Genetics bv
Evert van Steenbergen
Schoenaker 6
6641 SZ Beuningen
Tel: (024) 677 99 99
Fax. (024) 677 98 00
 

Reply via email to