Daniels Colorize.pl 0.04a

Daniels Colorize.pl is a short script that reads from stdin and writes to stdout.
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, 12:48 GMT
price:
FREE!
developed by:
Daniel Flinkmann
license type:
GPL (GNU General Public License) 
category:
ROOT \ Programming \ UI (User Interfaces)

FREE!

In a hurry? Add it to your Download Basket!

user rating 11

UNRATED
3.7/5
 

0/5

Add your review!

SUBMIT