[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Why TAB in ansi color is not recognized?
From: |
Peng Yu |
Subject: |
Why TAB in ansi color is not recognized? |
Date: |
Sun, 28 Apr 2019 12:23:10 -0500 |
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
- Why TAB in ansi color is not recognized?,
Peng Yu <=