Subject: Re: bug#22656: How to grep two patterns in a line with correct coloring?

From: Gary Johnson <[email-masked]>
Date: Sat, 13 Feb 2016 18:28:37 -0800

On 2016-02-13, Peng Yu wrote:
> Hi,
> 
> I know that I can use this to grep two patterns. But it can not
> highlight both patterns.
> 
> grep word1 FILE | grep word2

This seems to work:

    grep --color=always word1 FILE | grep word2

Regards,
Gary