Created
April 4, 2018 07:49
-
-
Save trungtin/f65cc758cc748928bcb0e9d748a55d3d to your computer and use it in GitHub Desktop.
Shell script
This file contains 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 <filename> | while read line; do echo "$line" | python -m json.tool | pygmentize -l json; done; // Read log file with json and colorized |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment