Created
August 17, 2017 19:08
-
-
Save glats/53e2db0a05a6fea437c430b2738f4e61 to your computer and use it in GitHub Desktop.
tail with color
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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