Skip to content

Instantly share code, notes, and snippets.

@sam-w
Created June 27, 2019 03:31
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 sam-w/fdc78e33b5a0fdaf36136df649564958 to your computer and use it in GitHub Desktop.
Save sam-w/fdc78e33b5a0fdaf36136df649564958 to your computer and use it in GitHub Desktop.
Convert directory of json to pretty-printed
for file in output/**/*(.); do cat $file | jq . > /tmp/jq.json; cat /tmp/jq.json > $file; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment