Use curl to download image sequences

Software

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 "http://example.com/[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 "http://example.com/[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.

Author bio and support

Me!

Ruben Schade is a technical writer and IaaS engineer in Sydney, Australia who refers to himself in the third person in bios. Wait, not BIOS… my brain should be EFI by now.

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite cloud infrastructure provider.

If you found this post helpful or entertaining, you can shout me a coffee or buy some silly merch. Thanks!