Daniels Colorize.pl 0.3a review
DownloadDaniels 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:
Allows no background colors.
Support for choosing between colorizing whole rows or just the matching words.
Daniels Colorize.pl 0.3a search tags