Last active
October 10, 2022 04:03
-
-
Save xbalaji/2e4cf84beb24a451d7641e4ade0e2355 to your computer and use it in GitHub Desktop.
json2yml one liner
This file contains hidden or 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
# oneliners-json2yml.sh | |
cat "json-file" | python -c 'import sys,yaml; yaml.dump(yaml.safe_load(sys.stdin),sys.stdout)' | |
python -c 'import sys,yaml; yaml.dump(yaml.safe_load(sys.stdin),sys.stdout)' < "json-file" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment