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 "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.