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
  • 1
  • 16
  • 47
  • 69
user3595231
  • 711
  • 12
  • 29

0 Answers0