Skip to content

Instantly share code, notes, and snippets.

@chmouel
Created June 9, 2015 05:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chmouel/0c8b4cf08255210a5b55 to your computer and use it in GitHub Desktop.
Save chmouel/0c8b4cf08255210a5b55 to your computer and use it in GitHub Desktop.
for i in $(find . -name '*.json');do python -c 'import sys,json,yaml;print(yaml.safe_dump(json.loads(sys.stdin.read()), default_flow_style=False))' < $i > ${i/json/yaml};done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment