-
-
Save s-shin/d631b0dfe06ba96efdd2344112e8d53c to your computer and use it in GitHub Desktop.
command converting yaml to json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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