Linux – download files from text file that contain files list under linux

centoslinuxwget

i have a text file that contains a list of urls for files of my word

for example :

http://domain.com/file1.zip
http://domain.com/file2.zip
http://domain.com/file3.zip
http://domain.com/file4.zip

…etc

how can i batch download all files to a folder automatically from linux shell command

thanks for help

Best Answer

From man wget:

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

wget -i <file>