Friday, 12 October 2012

Using wget to get multiple files from http servers

The Unix wget utility support globbing, but only when pointed to Unix FTP servers. So this could work:


but this will not


What do you do when you want to do this for an http server? A common case is where you have numbers for example, like


In this case the solution is


In this case the command will be repeated for all numbers and you get all 10 images in one go.