Skip to content

Instantly share code, notes, and snippets.

@sragu
Created September 25, 2011 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sragu/1240337 to your computer and use it in GitHub Desktop.
Save sragu/1240337 to your computer and use it in GitHub Desktop.
Android grub json, and pass to jsonlint and print inline
#!/usr/local/bin/gawk -f
#Android grub json, and pass to jsonlint and print inline
#usage adb logcat | jsonbeautify
{print} match($0, "Raw HTTP Response:(.*)$", a) {print "---";print a[1] | "jsonlint"; close("jsonlint"); print "---";}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment