Skip to content

Instantly share code, notes, and snippets.

@s-shin
Created February 3, 2017 09:23
Show Gist options
  • Save s-shin/d631b0dfe06ba96efdd2344112e8d53c to your computer and use it in GitHub Desktop.
Save s-shin/d631b0dfe06ba96efdd2344112e8d53c to your computer and use it in GitHub Desktop.
command converting yaml to json
#!/bin/bash
set -eu
ruby -ryaml -rjson -e "puts JSON.dump(YAML.load(STDIN))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment