5

Sorting a file in descending order when you have 10e- values

view full story
linux-howto

http://www.unix.com – Hi, I am trying to sort the following file in descending order of its fourth column. Code: 2      1      363828  -2.423225e-03 3      1      363828  4.132763e-03 3      2      363828  8.150133e-03 4      1      363828  4.126890e-03 I use Code: sort -k4,4g -r input.txt > output.txt But the file is still in ascending order. How do I fix this? Thanks! (HowTos)