Hi,

In the 2nd example, it is not sorted as what I want. Why is it so?

$ printf '%s\t%s\n' a 1 a 2 |grep --color=always a | sort -k 2,2nr
a       2
a       1
$ printf '%s\t%s\n' a 1 a 2 | grep --color=always a$'\t' | sort -k 2,2nr
a       1
a       2


-- 
Regards,
Peng

Reply via email to