3 ms·
for((i=0;i<=99999999999;i++));do curl https://site.com/info.php?id=$i https://site.com/info.php?id=$i > $i.json done
by AdamJacobMuller 5y ago
for((i=0;i<=99999999999;i++));do
curl https://site.com/info.php?id=$i https://site.com/info.php?id=$i > $i.json
done
- callalex 5y agoThis is a tangent, but curl has built-in support for “globbing”. For numeric ranges you can just put the range in [brackets] and it handles the rest.