Skip to content

Instantly share code, notes, and snippets.

@camsaul
Created April 11, 2017 22:01
Show Gist options
  • Save camsaul/b46910068c45b1effafccf39494f7a1d to your computer and use it in GitHub Desktop.
Save camsaul/b46910068c45b1effafccf39494f7a1d to your computer and use it in GitHub Desktop.
Convert JSON file to YAML
#! /bin/bash
python -c 'import sys, yaml, json; yaml.safe_dump(json.load(sys.stdin), sys.stdout, default_flow_style=False)' < $file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment