I make a get request to a public API via the unix shell. Then I select a specific string value pair. This works perfectly, however I am unable to assign it to a variable called max_temperature.
Can someone help?
response="$(curl $url)"
max_temperature=$response | jq '.["main"].temp_max'