Say I have output from a command that is colorized for the terminal. I want to match any line that contains the color yellow. How can I do this in grep, eg:
mycommand -itSomtimesPrintsLinesWithYellowColorCodes | grep -e "?????"
Note: This is NOT about colorizing the output of grep, or adding any colors. It's only about how to filter/match colored of input coming into grep.
Asked by Zombies
(665 rep)
Feb 15, 2018, 08:52 PM
Last activity: Aug 6, 2023, 10:51 PM
Last activity: Aug 6, 2023, 10:51 PM