Skip to content

Instantly share code, notes, and snippets.

@mchow01
Created December 13, 2013 14:03
Show Gist options
  • Save mchow01/7944678 to your computer and use it in GitHub Desktop.
Save mchow01/7944678 to your computer and use it in GitHub Desktop.
Download remote files listed in a given input file of URLs
#!/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