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
|
- bug in sort Daben Liu
- Re: bug in sort Jim Meyering
- Bug in sort Evert van Steenbergen
- Bug in sort Evert van Steenbergen
- bug in sort Philippe Argouarch
- Bug in sort Paddy Doyle \(Sysadmin\)
- Re: Bug in sort Paddy Doyle \(Sysadmin\)
- Re: Bug in sort Bob Proulx
- Re: Bug in sort Paddy Doyle \(Sysadmin\)
- Bug in sort Thomas Herchenroeder
- not a bug [Re: Bug in sort Jim Meyering