In EBCDIC we trust.

August 7, 2011


ccze is a nice way to colorize your logs. The defaults are tuned more for following logs in a dedicated window, than for viewing them inline at a prompt. I use an alias like this:

alias cz='(ccze -m ansi | less -MnFRX)'

allowing usage like

$ cz < /var/log/messages
$ tail -n 20 /var/log/syslog | cz
$ dmesg | tail | cz