grep --color=auto 'pattern' file.txt

Category: Text Processing

grep --color=auto 'pattern' file.txt

Highlight the matched pattern in color

Highlights the matched text in color, making it easy to spot within long lines.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.