Last active
November 17, 2016 16:10
-
-
Save merevu/e14d9a860140bc24da51eed784619507 to your computer and use it in GitHub Desktop.
smartOS에서 json 로그 파일을 pretty print
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
#!bin/bash | |
## $1 is log file name | |
## $2 is start line number | |
## $3 is end line number | |
for idx in $(seq $2 $3);do | |
sed "${idx}q;d" $1 | json | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment