Zev Weiss wrote:
The original question asked about colorizing both patterns in the output ofgrep 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....