Skip to content

Instantly share code, notes, and snippets.

@vicendominguez
Forked from kartikshah/tail-color.sh
Last active August 29, 2015 14:13
Show Gist options
  • Save vicendominguez/559ec7ee610bf4e261c1 to your computer and use it in GitHub Desktop.
Save vicendominguez/559ec7ee610bf4e261c1 to your computer and use it in GitHub Desktop.
tail color with "INFO" in green showing all lines
$tail -f /var/log/applications/application.log | awk '
// {print $0}
/INFO/ {print "\033[32m" $0 "\033[39m"}
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment