Sorting by numerical order
Hey guys,
Quick Q. I have a three column data file with lines as such: 1455594_at 306.42 51 1424094_at 6789.066 27 1419187_at 4.776 0 I need to tell bash to order the data numerically by entries in column 3. I've used the command: Code:
sort -k 3 SCAT_TOT_Muscle-170 > sorted 88, 88, 89, 9, 9, 90, 91, 92 How do I tell bash to realize that it is sorting integers and thus 9 should not come after 89? |
use the -n flag as per the sort manpage.
|
Code:
sort -n -k 3 SCAT_TOT_Muscle-170 > sorted |
Thanks guys.
|
All times are GMT -5. The time now is 06:36 AM. |