Bash Script Curl Output To Variable Cost