I want to replace KEY in curl command with variable value in shell script.
KEY=KEY_VALUE
My curl command is as follow.
curl -s "https://api.kite.trade/quote?i=NSE:NIFTY+50&i=NSE:INF" -H "X-Kite-Version: 3" -H "Authorization: token XYZ:KEY"
Thanks in advance
KEYinto a parameter expansion$KEYand setting the variableKEYto whatever you want?