Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Json to Bash variables
pilasguru
Apr 21st, 2022
1,163
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Bash
0.09 KB
| None
|
0
0
raw
download
clone
embed
print
report
echo
'{ "foo": 123, "bar": 456 }'
|
jq
-r
'. | to_entries | .[] | .key + "=" + (.value | @sh)'
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
1 min ago | 9.18 KB
ᴛᴡᴏ ɪɴ ᴏɴᴇ, ᴏʀ ᴏɴᴇ ɪɴ ᴛᴡᴏ.
CSS | 49 min ago | 4.28 KB
Untitled
2 hours ago | 11.87 KB
Untitled
4 hours ago | 8.83 KB
[IN REVIEW] PS/PM: Grace Edits
5 hours ago | 0.81 KB
Untitled
6 hours ago | 11.06 KB
[IN REVIEW] PS/PM: PM - Post Launch
6 hours ago | 0.72 KB
[IN REVIEW] PS/PM: PM - Launch Checklist
6 hours ago | 0.73 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!