Last Updated: February 25, 2016
·
2.063K
· barnettjw

Use grep to highlight, but not filter

Grep'ing with color is great, but by default it will only show lines that match the pattern.

If instead, you just want to highlight a string, similar to the way most find functions work in GUI applications.

grep --color='always' -E "<string>|$" <file>