I can do the following to see if some word is available in the output of "cat":
cat filename | grep word
This filters the output and shows only those lines which contain "word". Now, is it possible to only highlight the "word" in the output, without dropping other lines?
grep word filename
is clearer and faster. ;) Also,less
can do this while also providing paging. Just search forword
by typing/word
(the term is actually a regular expression, just likegrep
) – Alexios Dec 25 '13 at 15:50