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>
Written by James Barnett
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Grep
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#