colorful log via perl

cat /var/log/message | perl -pe 's/ERROR/\e[1;31;43m$&\e[0m/g'

0 comments:

張貼留言