Skip to content

Instantly share code, notes, and snippets.

@masonwan
masonwan / grep-color.sh
Last active June 12, 2023 18:55
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.*"