Created
January 17, 2011 00:30
-
-
Save sousk/782303 to your computer and use it in GitHub Desktop.
colorize screen log
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
| エンジニアの人って割と白黒のログ眺めてる人が多い気がしますが、僕は何かと色つけたい派ですね。 | |
| bash に | |
| ctail(){ tail -f $1 | perl -pe 's/'$2'/\033\[1;35m$&\033\[0m/gi'; } | |
| と書いて | |
| ctail /var/log/system.log "(error|exception|unable)" | |
| とかやってます |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment