Grep (cli)

display all output but highlight search matches

grep --color=always -e "^" -e "hello" testfile

Negative matching

grep -v is your friend

grep --help | grep invert  

Alternatives

ack || ag > grep

Written on July 31, 2019, Last update on August 13, 2020
text search grep cli