I am trying to download a batch of images using cURL. The images are all saved in separate directories, named the same as the image filenames.
I tired using the square brackets to set two range's, one for the filename and one for the directory but that didn't work due to the command going through the first range and then the second range, rather than both ranges going up by 1 at the same time.
curl -f "https://example.com/images/products/[100-200]/[100-200].jpg" -o "/Users/user/Desktop/output/#1.jpg"
Is it possible to set the cURL command so that both directory and file name numbers go up by 1 each time?
Example:
https://example.com/images/products/100/100.jpg
https://example.com/images/products/101/101.jpg
https://example.com/images/products/102/102.jpg
https://example.com/images/products/103/103.jpg
ect...