Highlight text similar to grep, but don’t filter out text [duplicate]

When using grep, it will highlight any text in a line with a match to your regular expression.

What if I want this behaviour, but have grep print out all lines as well? I came up empty after a quick look through the grep man page.

10 Answers
10

Leave a Comment