How to run curl command with parameter in a loop from bash script? [duplicate] How to run curl command with parameter in a loop from bash script? [duplicate] curl curl

How to run curl command with parameter in a loop from bash script? [duplicate]


Try this:

set -B                  # enable brace expansionfor i in {1..10}; do  curl -s -k 'GET' -H 'header info' -b 'stuff' 'http://example.com/id='$idone

See: Difference between single and double quotes in Bash