bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Gary Johnson
Subject: bug#22656: How to grep two patterns in a line with correct coloring?
Date: Sat, 13 Feb 2016 18:28:37 -0800
User-agent: Mutt/1.5.20 (2009-06-14)

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

[Prev in Thread] Current Thread [Next in Thread]