so in my code i'm parsing configuration from a file into the script that I now want to execute in one. My first variable is called curl and I now want to include the variable captured in the configuration file but with quotes around some of the parameters. Example below for clarification.
curlsting="curl"
CONFIG=rest.conf
cid=$(awk '/^client_id/{print $3}' "${CONFIG}")
gtype=$(awk '/^grant_type/{print $3}' "${CONFIG}")
csecret=$(awk '/^client_secret/{print $3}' "${CONFIG}")
user=$(awk '/^username/{print $3}' "${CONFIG}")
pw=$(awk '/^password/{print $3}' "${CONFIG}")
ip=$(awk '/^IP/{print $3}' "${CONFIG}")
I'd like the output to be like this
curl '{client_id=test&grant_type="testing"&client_secret=test&username=test&password=test}' http://1.2.3.4:5678/
Basically what is the based way to incorporate 7 variables into one string to execute?