Skip to content

Instantly share code, notes, and snippets.

@merevu
Last active November 17, 2016 16:10
Show Gist options
  • Save merevu/e14d9a860140bc24da51eed784619507 to your computer and use it in GitHub Desktop.
Save merevu/e14d9a860140bc24da51eed784619507 to your computer and use it in GitHub Desktop.
smartOS에서 json 로그 파일을 pretty print
#!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