Using bash to download files from a list of URLs

- 1 min

Today I need to download a large list of files. So I put all the URLs in a file (called url) and iterate of it in bash to download them by wget:

#!/usr/bin/env bash

while read ll; do
        wget $ll
done < url
Carles Hernandez-Ferrer

Carles Hernandez-Ferrer

Bioinformatics, data analysis and software development

rss facebook twitter github gitlab youtube mail spotify lastfm instagram linkedin google google-plus pinterest medium vimeo stackoverflow reddit quora quora