Created
December 13, 2013 14:03
-
-
Save mchow01/7944678 to your computer and use it in GitHub Desktop.
Download remote files listed in a given input file of URLs
This file contains 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
#!/bin/bash | |
# From http://stackoverflow.com/questions/10929453/bash-scripting-read-file-line-by-line | |
while read line | |
do | |
img=$(echo $line | sed -e 's/\r//g') # remove carriage return | |
wget $img | |
done < $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment