Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

for example :


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

thanks for help

share|improve this question
up vote 9 down vote accepted

From man wget:

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

wget -i <file>

share|improve this answer

You could also use xargs:

$ cat /path/to/list | xargs -n1 wget 

or, using seq to download to

$ seq 1 10 | xargs -n1 -i wget{}.zip

[edit] or, as another poster pointed out: $ wget{1..10}.zip

which is nicer than the seq method, given that certain OSes don't have seq by default (Mac OS X, Solaris)

share|improve this answer
for i in `cat /file/list`


    wget $i


(those are back ticks in the "cat /file/list" (on the same key as the tilda)

share|improve this answer

This command downloads to

for i in $(seq 1 10);  do wget -nv${i}.zip ; done
share|improve this answer
if they were sequential, you could just do wget{1..10}.zip curl also has good support for file ranged, but I always forget the syntax. – Justin Jan 2 '10 at 19:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.