I'm trying to use curl to download a seried of files in the following format:
..
So I used this command:
time curl "http://example.com/[0-9][0-9][0-9].jpg" -o "#1#2#3.gif"
But some of the files don't exist, and that command will create the files on my end but really it will just contain the error page.
I need a way for curl to check if it exists on the remote server before downloading it.
I know wget can do it, but wget seems to take about 5 times longer to run. The command I used to try it in wget is this:
time wget http://example.com/{0..9}{0..9}{0..9}.jpg