Skip to content

Parallel downloads with wget

How to download a list of URLs using more than one process (say wget) at the time?
First, create a file with URLs – one URL per line. Let’s call the file url.txt. Then we need to create N wget processes, each downloading one URL at the time. Thanks to xargs it is trivial:

cat url.txt | xargs -n 1 -P 10 wget

-n 1 will make xargs run command (wget) with only one argument at the time
-P 10 will create 10 parallel processes

One Comment

  1. Ole Tange wrote:

    Using GNU Parallel http://www.gnu.org/software/parallel/ is it even shorter:

    cat url.txt | parallel wget

    Friday, June 11, 2010 at 10:26 am | Permalink

One Trackback/Pingback

  1. Sciencia-Geek » Descargas en paralelo con Wget on Tuesday, May 25, 2010 at 5:41 pm

    [...] http://techblog.zabuchy.net/ Written by Jp Neira in: Computación / Internet | Etiquetas: descargas, wget, ¡¡¡Software [...]

Post a Comment

Your email is never published nor shared.
*