Skip to content

Instantly share code, notes, and snippets.

@collegeman
Created March 1, 2012 01:21
Show Gist options
  • Select an option

  • Save collegeman/1946428 to your computer and use it in GitHub Desktop.

Select an option

Save collegeman/1946428 to your computer and use it in GitHub Desktop.
Add color formatting to a tail stream
tail -f file | perl -pe 's/(ERROR|WARN)/\e[1;31;43m$&\e[0m/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment