Skip to content

Instantly share code, notes, and snippets.

@chipchilders
Created January 1, 2013 19:25
Show Gist options
  • Save chipchilders/4429461 to your computer and use it in GitHub Desktop.
Save chipchilders/4429461 to your computer and use it in GitHub Desktop.
highlight regex during tail
Found this here: http://fixunix.com/unix/83044-tail-color.html
tail -f file | perl -pe 's/keyword/\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