Use curl to download image sequences

If you need to download a series of images, such as nineteen project slides that were uploaded individually (argh!), you can get this done easily with curl:

% curl -O "[01-10].jpg"

Sometimes though, you’ll end up with empty files. If people publish their files through a CDN, the URL may simply be a redirect. To follow these and download the original:

% curl -OL "[01-10].jpg"

This is just scratching the surface, but it’s a substantial part of what I use curl for. Now I just wish my hair didn’t in humid weather.


This is one of about 5000 posts on Rubénerd. View the home page for the latest, or related posts also tagged with:

If you liked this post, feel free to buy me a coffee, leave me a comment on Twitter, or email me at Thanks :).