I need to download all files with "h11v10" in the name from a http server, from different directories (DF). I tried different ways but none of them worked.

wget --http-user user --http-password pass \

wget --http-user user --http-password pass \
  -r -l1 --no-parent -A 'h11v10' \

How can I deal with different directories and wildcards using wget? I also tried curl but it did not work either.

  • You would have to download a directory listing, parse it, and then fetch the files. Jun 22, 2018 at 22:13
  • There is no support in HTTP for wildcards. Jun 22, 2018 at 22:39

1 Answer 1


Since you need a login to download the files, I can't test it for your situation.

So another example: if you want to download all files containing “SHA” from the directories here:


you can use:

wget -r --no-parent 'https://cdimage.debian.org/cdimage/weekly-builds/' --accept '*SHA*'

So for your problem, it should be:

wget -r --no-parent --http-user user --http-password pass \
  'https://e4ftl01.cr.usgs.gov/MOLT/MOD16A2.006/' --accept '*h11v10*'

Does that work?

It's not very efficient since it has to download the index.html pages first.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .