Created
June 27, 2019 03:31
-
-
Save sam-w/fdc78e33b5a0fdaf36136df649564958 to your computer and use it in GitHub Desktop.
Convert directory of json to pretty-printed
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
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