in reply to Capturing ANSI color escape codes with backticks
You check by simply writing
$ echo foo | grep foo # output in read on my terminal foo $ echo foo | grep foo | cat # output in grey on my terminal foo
Use --color=always to force color codes.
|
|---|