GNU bug report logs - #22656
How to grep two patterns in a line with correct coloring?

Previous Next

Package: grep;

Reported by: Peng Yu <pengyu.ut <at> gmail.com>

Date: Sun, 14 Feb 2016 00:11:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #19 received at 22656 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Zev Weiss <zev <at> bewilderbeest.net>, 22656 <at> debbugs.gnu.org,
 pengyu.ut <at> gmail.com
Subject: Re: bug#22656: How to grep two patterns in a line with correct
 coloring?
Date: Sun, 10 Apr 2016 22:54:21 -0700
Zev Weiss wrote:
> The original question asked about colorizing both patterns in the output of
>
>   grep word1 | grep word2
>
> (i.e. lines that contain *both* word1 and word2)

I interpreted the original question the other way. Now that I reread it, it 
appears to be ambiguous.

This bug report does have the flavor of someone trying to use debbugs.gnu.org to 
solve a homework problem, which means I should probably stop now....




This bug report was last modified 9 years and 106 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.