Currently, I use
egrep --color 'error|$'
to highlight every word in a line containing the word error:
I would like to highlight the entire line though so that the entire string appears in red.
How can I achieve that?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community