Hi, there,
I have a tab-delimited file called "f1.txt".
> cat f1.txt
-573 -6.06
-832 -11.95
I want to sort it numerically based on the second column, and expect to
see the result as following:
-832 -11.95
-573 -6.06
However, I use -t \t, the result turns out to be:
> sort -t \t -k 2 -n f1.txt
-573 -6.06
-832 -11.95
Is it a bug or just my oversight? The version of sort I'm using is
"sort 6.4 November 2006".
Best
Sean
-------------------------------------------
Sean Li, Ph.D
Program of Bioinfomatics & Systems Biology
Bioengineering Department
University of California at San Diego
Tel. 858-534-5116
[Prev in Thread]
Current Thread
[Next in Thread]
Possible bug in sorting a tab-delimited file?,
Sean Li<=