2008/9/8 Maxim Veksler <[EMAIL PROTECTED]>: > On Fri, Sep 5, 2008 at 2:24 AM, Amos Shapira <[EMAIL PROTECTED]> wrote: >> >> 2008/9/5 Tzafrir Cohen <[EMAIL PROTECTED]>: >> > You want to mark 'FINDME' but also find every line? >> > >> > grep --color '^\|FINDME' >> > >> > Or: >> > >> > egrep --color '^|FINDME' >> >> Nice one! I should have though of that. > > Nice indeed. It does match everything but fails to highlight. At least on > EL5 using Konsole.
1. Have you tried this only with "| less -r" by any chance? Maybe since grep's output goes to a pipe and not to the terminal it decides to ignore --color. That's the behavior I see on my Ubunutu. Try "--color=always" when you pipe egrep's output, it helped in on my desktop. 2. Could it be that something is masking your GREP_COLORS envariable (see the --color section in your egrep's manual) --Amos ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]