wget & text file

Lets say i have a text file full of links  like that:

http://myserver.com/myfile1.rar
http://myserver.com/myfile2.rar
http://myserver.com/myfile3.rar
http://myserver.com/myfile4.rar
http://myserver.com/myfile5.rar
http://myserver.com/myfile6.rar

and lets say the file's name is "list"

How can I run wget in a way that will proccess and download aautomaticaly all the files in the list,but
1 by 1, meaning, that it will download the first and after it finishes it will download the second and then the third, etc etc.

Any ideas?
LVL 2
MaRiOsGRAsked:
Who is Participating?
 
brettmjohnsonCommented:
From the wget man page:

"     -   You have a file that contains the URLs you want to download?  Use
           the -i switch:

                   wget -i I<file>
"
0
 
ozoCommented:
while read url ; do wget $url; done < list
0
 
ahoffmannCommented:
wget `wget -O - http://dom.tld/list`
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.