I only want to sort a file by the second character in the second column by the number order. the sample file like this:
aa 19 aa 189 aa 167 ab 13 nd 23 at 32 ca 90 I expect the result like
ca 90 at 32 ab 13 nd 23 aa 167 aa 189 aa 19 I use the command sort -n -k 2.2,2.2 [filename]. But it shows me the result like this:
aa 167 aa 189 aa 19 ab 13 nd 23 at 32 ca 90 It is not the right answer. Does anybody know what's wrong with my command?