Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mp_keys= a,b,c,d
- curl https://mp.com | jq '. | [$mp_keys] | @csv'
- jq '. | [.a, .b, .c, .d] | @ csv'
- jq --arg mp_key1 "${mp_key1}" --arg mp_key2 "${mp_key2}" --arg mp_key3 "${mp_key3}" --arg mp_key4 "${mp_key4}" '.
- | [.[$mp_key1], .[$mp_key2], .[$mp_key3], .[$mp_key4]]
- | @csv'
Add Comment
Please, Sign In to add comment