Here's how I do it on a Mac (OSX), but it should work equally well on other systems:
What you need is a text file containing your links for curl
So:
http://www.site1.com/subdirectory/file1-[01-15].jpg http://www.site1.com/subdirectory/file2-[01-15].jpg . . http://www.site1.com/subdirectory/file3287-[01-15].jpg
In this hypothetical case, the text file has 3287 lines, and each line encodes 15 images.
Let's say we save these links in the text file testcurl.txt at the top level (/) of our hard drive.
Now we need to go into the terminal and enter the following command in the bash shell:
for i in "`cat /testcurl.txt`" ; do curl -O "$i" ; done
Make sure you use back ticks (`) Also make sure that the (-O) flag is capital O and NOT zero
with the -O flag, the original file name will be written
Happy download!
Stefan Gruenwald Jan 03 '14 at 21:27 2014-01-03 21:27
source share