bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Never mind RE: Possible bug in sorting a tab-delimited file?


From: Sean Li
Subject: Never mind RE: Possible bug in sorting a tab-delimited file?
Date: Mon, 8 Oct 2007 14:41:03 -0700

Never mind. 

It is the problem about how to input a tab in command line.

 

perl -e '{print "sort -t\"\t\" -k2 -n f1.txt\n"}' | sh    will do.

 

Sorry for the false alarm.

 

Sean

 

From: Sean Li 
Sent: Monday, October 08, 2007 12:56 PM
To: 'address@hidden'
Subject: Possible bug in sorting a tab-delimited file?
Importance: High

 

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

 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]