0

How to write loop to iterate the below command for 10 times for variable i.

_RESULT=$(curl -sgG "${CURL_OPTS[@]}" --data-urlencode "query=${PROMETHEUS_QUERY}" "${PROMETHEUS_SERVER}/api/v1/query" | jq -r '.data.result[**i**]')
Gilles Quénot
  • 173,512
  • 41
  • 224
  • 223
ramesh k
  • 23
  • 6

0 Answers0