Daniels Colorize.pl 0.3a review

Download
by rbytes.net on

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

License: GPL (GNU General Public License)
File size: 2K
Developer: Daniel Flinkmann
0 stars award from rbytes.net

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:
Allows no background colors.
Support for choosing between colorizing whole rows or just the matching words.

Daniels Colorize.pl 0.3a keywords