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 Dec 29, 2010, at 11:52 AM, David Kramer wrote:
> Is there a linux tool that can work as a pipe (read stdin, write to stdout) and colorize any text
> matching an regex?  If not, I'll have to write one.  Not that hard, but I would hate to reinvent
> it.

Text has no color of it's own.  It is, after all, just bits.  There may be codes within a text stream that tell the display or renderer to set color properties, but that's a little different.  What, exactly, is your display or rendering mechanism, because HTML is going to be notably different from, say, a Tektronix terminal.

--Rich P.

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 /