Skip to content

Instantly share code, notes, and snippets.

@tomgidden
Created June 28, 2017 07:06
Show Gist options
  • Save tomgidden/1371d20d975b64152597d3a3f726cda0 to your computer and use it in GitHub Desktop.
Save tomgidden/1371d20d975b64152597d3a3f726cda0 to your computer and use it in GitHub Desktop.
Like `-i` for `wget`, but allows for a second parameter to save to filename; stupid that `wget` and `curl` don't do this.
err=0
while read -r url filename tail; do
wget -O "$filename" "$url" || err=1
done < urls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment