Skip to content

Instantly share code, notes, and snippets.

@AlJohri
Last active March 23, 2016 20:15
Show Gist options
  • Save AlJohri/79ec118b00a073120187 to your computer and use it in GitHub Desktop.
Save AlJohri/79ec118b00a073120187 to your computer and use it in GitHub Desktop.
for file in *.json
do
cat "$file" | python -m json.tool > "$file.new"
mv -f "$file.new" "$file"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment