Your ads will be inserted here by
Easy Plugin for AdSense.
Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.
multitail -c /path/to/log
multitail configuration are located at ~/.multitailrc
colorscheme:logname
cs_re:green:TEST
cs_re:red:ERROR
multitail -cS logname /path/to/log
AWK Method:
tail -f /path/to/log | awk ‘/TEST/ {print “\033[32m” $0 “\033[39m”} /ERROR/ {print “\033[31m” $0 “\033[39m”}’
SED Method:
tail -f /path/to/log | sed -e ‘s/\(.*TEST.*\)/\o033[32m\1\o033[39m/’ -e ‘s/\(.*ERROR.*\)/\o033[31m\1\o033[39m/’