Skip to content

Instantly share code, notes, and snippets.

@glats
Created August 17, 2017 19:08
Show Gist options
  • Select an option

  • Save glats/53e2db0a05a6fea437c430b2738f4e61 to your computer and use it in GitHub Desktop.

Select an option

Save glats/53e2db0a05a6fea437c430b2738f4e61 to your computer and use it in GitHub Desktop.
tail with color
tail -f /j2ee/log/serverneg.log |
sed -e 's/\(.*INFO.*\)/\o033[32m\1\o033[39m/' \
-e 's/\(.*ERROR.*\)/\o033[31m\1\o033[39m/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment