Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


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

Colorize text matching a regex through a pipe?



On 01/19/2011 12:21 AM, Derek Martin wrote:
> On Tue, Jan 18, 2011 at 10:24:03PM -0500, David Kramer wrote:
>> Thanks.  I played with this, and with colortail.  I didn't really like
>> either solution in the end.  [e]grep only allows one color and one
>> pattern, and colortail doesn't actually work as a filter (the author
>> "has a patch for that").
> 
> Upgrade fileutils.  Newer versions of grep are much more configurable.

I did some searching and was unable to find anything saying some version
of grep can colorize matches to different regexes with different colors.
 Can you elaborate?

Since this has to work in Cygwin, this is not an option for this
particular case, but I'm curious.

Thanks.





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org