Created
September 30, 2020 19:58
-
-
Save pwillis-els/0c15b62dc8cfaedc1b7eaf77aa79d22f to your computer and use it in GitHub Desktop.
Python one-liner to convert json stdin into key=value on stdout
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/sh | |
python -c 'import sys,json;j=json.load(sys.stdin); print( "\n".join(["%s=%s" % (k, j[k]) for k in j]) )' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment