I need to write a loop where I need to pass a "token" (which is fixed) and a variable (i
) in the url. Is there any way I can achieve that? I wrote the following code but it is not working. If I put double quotes around the entire url it doesn't work
for ((i=1;i<=100;i++)); do
curl -O "https://api.mysite.com/info?&access_token=xyx"&page=i
done
$i
afterpage=
. – Luis Antolín Cano Nov 11 '14 at 21:28