I\'d like to know if I can colour highlight the output of a shell command that matches certain strings.
For example, if I run myCommand, with the output below:
There is an answer in superuser.com:
your-command | grep -E --color 'pattern|$'
or
your-command | grep --color 'pattern\|$'
This will "match your pattern or the end-of-line on each line. Only the pattern is highlighted..."