Bash Store Curl Results into Array Bash Store Curl Results into Array curl curl

Bash Store Curl Results into Array


Use jq to extract the URLs.

$ curl ... | jq -r '.results[].uri'URL/api/storage/generic-sgca/Lastest_Deploy.tarURL/api/storage/generic-sgca/Installer-Deploy-0.0.5/SignalStudioPro-Alpha-1-linux-x64-installer.run

Then use your favorite correct technique for iterating over the output of a command line-by-line; see Bash FAQ 001 for details.

(I'm assuming a URL will not contain a newline; if that's the case, switch to a different language that can handle arbitrary data more easily.)