分类:
2009-03-25 17:03:36
#!/bin/sh awk '{ if ($0 ~ /PHP Notice/) { print ">>>\033[32m",$0,"\033[0m"; } else if ($0 ~ /PHP Warning/) { print ">>>\033[33m",$0,"\033[0m"; } else if ($0 ~ /PHP Fatal error/) { print ">>>\033[31m",$0,"\033[0m"; } else if ($0 ~ /MySQL Error/) { print ">>>\033[35m",$0,"\033[0m"; } else { print ">>>",$0; } }' |