maetow
Last Updated: February 25, 2016
·
848
· barnettjw
43ea08b4fc547e8a5da87c207bea2123

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>
Say Thanks
Respond
Filed Under

Awesome Job

E20ce6a2 ca1f 11e7 82be 7f617c8310c9
SENIOR DEVELOPER (m/w)
·
Berlin, Köln, Hamburg, München
·
Full Time