2

I have a list of links in a file as follow:

  https://xxxxx.com/folder1/xxxx.jpg
  https://xxxxx.com/folder1/folder2/xxxx.jpg

https://xxxxx.com is a constant

I would like to download in my server all the files in their respective folders as followed: i.e

 /folder1/xxxx.jpg
 /folder1/folder2/xxxx.jpg

Any suggestions ?

Henri
  • 123

1 Answers1

3

This should work:

$ wget -x -nH -i file_with_links