Skip to content

Instantly share code, notes, and snippets.

@masonwan
masonwan / grep-color.sh
Last active December 29, 2025 21:17
Print out Tomcat log file "catalina.out" with color
tail -200 catalina.out | ack-grep --flush --passthru --color --color-match=red "^.*ERROR.*" | ack-grep --flush --passthru --color --color-match=green "^.*DEBUG.*"