Answers for "bash jq output to a variable"

0

bash jq output to a variable

content=$(curl -s  -X GET -H "Header:Value" http://127.0.0.1:8200/etc) 
username=$( jq -r  '.data.value' <<< "${content}" ) 
echo "${username}"
Posted by: Guest on April-29-2021

Browse Popular Code Answers by Language