This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
print "\e[1;32m==================================================================================================\n"; | |
print "\e[1;33m## colorTail.pl by David G. Folch ##\n"; | |
print "\e[1;32mColorTail gives color to your console outputs.\n"; | |
print "Optionally accepts a regex parameter, this regex (not casesensitive) will be colored in green\n"; | |
print "Example: tail /var/logs/*.log | perl colorTail.pl\n"; | |
print "Example: tail /var/logs/*.log | perl colorTail.pl myCustomGreenColoredMatchRegexText\n"; | |
print "==================================================================================================\e[0m\n"; | |
$markedText=$ARGV[0]; |