0

In Linux, I am trying to do something on command as:

for i in {1..10}
do  
    let i=i*10 
    curl -X POST http://server/MyApiCall -d'{"x": $i, "y": 0}' 
done

Currently it does not work, as "$i" is not valid in this json body. Does anyone the correct format for that ?

Thanks.

oguz ismail
  • 39,105
  • 12
  • 41
  • 62
user3595231
  • 593
  • 7
  • 19

0 Answers0