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




Reply via email to