Re:Everything you ever wanted to know about terminals (2018)
by rixed on Thursday September 10, 2020 @11:38PM
(#24438945)
I think the point the person you are replying to was trying to make is that in your proposed sequence of colored greps, the second one would not catch the "orange-box"es because of the extra chars added for coloring the output of the first grep.
Maybe grep should ignore ansi sequences optionally or by default, to solve this?
And if I wanted to write that out to a file then I would do
Alternatively, I'd add a filter to the file with `ansi2txt`