SecureCube.com

12Feb/110

Colorize output

With some regex magic and perl we can colorize the output in console:

tail -f filename | perl -pe 's/keyword/\e[1;31;43m$&\e[0m/g'
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.