I need some help with the following simple bash script, where the variable i does not seem to get substituted when running curl (causing an error).
(This is just a simple abstraction of the actual script)
for i in {1..3}
do
HTML=$(curl -s 'http://example.com/index.php?id=$i')
done;