Daniels Colorize.pl 0.04a

Daniels Colorize.pl is a short script that reads from stdin and writes to stdout.

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
GPL (GNU General Public License) 
USER RATING:
3.7/5 11
DEVELOPED BY:
Daniel Flinkmann
HOMEPAGE:
www.flinkmann.de
CATEGORY:
ROOT \ Programming \ UI (User Interfaces)
Daniels Colorize.pl is a short script that reads from stdin and writes to stdout. Rows that match a user's search strings will be colorized with user-defined colors. Command line options are available. Colorization is done via ANSI escape codes.

Use any kind of stdin text stream and it will send it on stdout colorized.

e.g.: ls -lF | colorize.pl [options]

colorize.pl will print out every line from stdin to stdout. However rows with matching strings, will be colorized with your choice of color.

Options:

Options format: -[style][foreground][background]:[searchstring]

[style]
n = normal, l = light, u=underscore, i = inverted, b = blinking

[foreground color]
0= black, 1= red, 2= green, 3= yellow, 4= blue, 5= purple, 6= cyan, 7= white

[background color]
0= black, 1= red, 2= green, 3= yellow, 4= blue, 5= purple, 6= cyan, 7= white

[searchstring]
string

Example:

cat debug.txt | colorize.pl -u17:error -n37:warning -b10:funny
will colorize lines with the word:
* "error" underscored in red front color and white background
* "warning" in green front color and white background
* "funny" blinking in red front color with black background

What's New in This Release:

Support was added for regular expressions for the partial colorization.

Last updated on January 11th, 2008

#reads stdin #writes stdout #colorized strings #stdin #stdout #colorized #strings

Add your review!

SUBMIT