$ jq -r '. | to_entries[] | "export \(.key)=\(@sh "\(.value)")"' ~/tmp/x.json
export URL='https://foo:[email protected]/'
export OTHER='foo " bar '\''baz'\'''
Created
September 9, 2020 07:21
-
-
Save jhidalgo3/b28146065f0fb8b69d23588d2c703620 to your computer and use it in GitHub Desktop.
jq Cheat Sheet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment