How can I download files (that are listed in a text file) using wget or some other automatic way?
Sample file list:
www.example.com/1.pdf
www.example.com/2.pdf
|
How can I download files (that are listed in a text file) using Sample file list: |
||||
|
|
|
wget has a built-in flag for this: |
|||
|
|
where list.txt is your list file |
|||
|
|
|
Wget is the best downloader I have ever seen. You can either use some shell programming with loops to download files whose names follow a pattern like (1,2,3,...) or use wget features. see this page on how to use wget for downloading files |
|||
|
|
|
with a for i loop starting with i=1 and
on your wget code. You can do it in a single line. |
|||
|
|