Skip to content

Instantly share code, notes, and snippets.

@sumitasok
Created May 28, 2013 10:53
Show Gist options
  • Save sumitasok/5661950 to your computer and use it in GitHub Desktop.
Save sumitasok/5661950 to your computer and use it in GitHub Desktop.
ruby command line JSON to YAML convertor
ruby -ryaml -rjson -e 'puts YAML.dump(JSON.parse(STDIN.read))' < file.json > file.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment