Created
June 28, 2017 07:06
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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