Re: Why TAB in ansi color is not recognized?

2019-04-28 Thread Assaf Gordon
Hello, On 2019-04-28 2:39 p.m., Peng Yu wrote: Thanks. Where the `[ K` come from? I only see `[ m` but not `[ K`. What does `[ K` mean? Thanks. http://pueblo.sourceforge.net/doc/manual/ansi_color_codes.html I recommend searching for complete ANSI code details, not just "coloring" (m). For

Re: Why TAB in ansi color is not recognized?

2019-04-28 Thread Peng Yu
Thanks. Where the `[ K` come from? I only see `[ m` but not `[ K`. What does `[ K` mean? Thanks. http://pueblo.sourceforge.net/doc/manual/ansi_color_codes.html On Sun, Apr 28, 2019 at 2:49 PM Assaf Gordon wrote: > > Hello, > > On 2019-04-28 11:23 a.m., Peng Yu wrote: > > > > In the 2nd example,

Re: Why TAB in ansi color is not recognized?

2019-04-28 Thread Assaf Gordon
Hello, On 2019-04-28 11:23 a.m., Peng Yu wrote: 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

Why TAB in ansi color is not recognized?

2019-04-28 Thread Peng Yu
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