I am writing a bash script. In a curl command I need a variable... It's just never recognized, or the command doesn't work. I searched the forum but didn't find anything suitable. Can you help me?
message="test"
curl -XPOST -d '{"msgtype":"m.text", "body":"$message"}' $curlurl
Since I need this json format, the double quotes must remain.
Thank you. Greetz Daniel
I have tried:
Substitute Single quote to double quote... \ to lose its meaning... but nothing work.