Friday, November 4, 2011

Colorize the Output of any Command from Bash!


# git clone git://github.com/ninp0/console_crayon.git
# gem install rainbow

I particularly like using it with tcpdump when monitoring pf in realtime via OpenBSD:

# cd console_crayon && ./console_crayon.rb -c 'tcpdump -nettt -i pflog0' -m 'pass,green,white|block,red,white'

but I'm sure you could use it for a million other things...enjoy!

Cheers!