Projects / colorize

colorize

colorize reads text files or the standard input line by line. It tries to match each line against a set of configurable regular expressions, and if one of them matches, it renders the line in color by means of ANSI escape sequences.

Tags Logging Text Processing Filters
Licenses GPL
Operating Systems OS Independent
Implementation Perl

Tweet this project Short link

Rss Recent releases

  • Rrelease-mid
  •  19 Jul 2004 11:38
  • Rrelease-after

No changes have been submitted for this release.

Rss Recent comments

Rcomment-before 31 Jan 2006 01:21 Rcomment-trans opepin Rcomment-after

Win32 support
Nice script, very usefull.

Comment for windows users, you have to install the win32-console-ansi module to get it work.

> ppm install win32-console-ansi

Rcomment-before 20 Jul 2004 05:01 Rcomment-trans bwana147 Rcomment-after

Re: Hi!

Yes, I've seen it, and it is a great tool, and indeed more general. colorize, OTOH, is a lot simpler: its only aim is to colorize a line or not, depending on whether it matches a given regex or not. It is intended for those very simple cases, where you want all lines containing "ERROR" to stand out in red. Anything beyond that is better achieved with csed.

And being written in Perl, it works on Windows with the help of a module that translates ANSI to whatever they use in Windows to colorize their terminal.

Rcomment-before 20 Jul 2004 01:22 Rcomment-trans ievlev Rcomment-after

Hi!
Hi!

Have you seen a csed project?

http://freshmeat.net/projects/csed/

I think it's more general solution, 'cause use

terminfo to colorize output to terminal (so it

works not only on ansy terminals)

No-screenshot

Project Spotlight

tlve

A tag-length-value parser.

No-screenshot

Project Spotlight

MetaModel

A common domain model, query-engine, and optimizer for different datastores.