mardi 30 août 2016

Retrieve similarly named files from multiple directories using wget

I am trying to retrieve a file with the same name in multiple directories. The site I am trying to retrieve from has the following format:

http://ift.tt/2c9u8Vb

Where [folder1] and [folder2] vary. I have come up with the following command, which returns a set of empty directories:

wget -r -np "www.mywebsite.com" -A "/*/*/whatImLookingFor"

If I manually enter in a specific set of values for [folder1] and [folder2], I download the specific file without any problem. Ideally I want every file named "whatImLookingFor" in the a set level of the directory. Could anyone point out the source of my error? I'd greatly appreciate any help.




Aucun commentaire:

Enregistrer un commentaire