How to tell wget where to fetch files passed via ‘–input-file’

downloadwget

I have a list of filenames (not urls) in a file, and I want to download them using --input-file option. How do I specify the url where those files will be fetched from?

Best Answer

Use the --base option:

wget -i file-of-filenames --base http://example.com/fetch/from/here/