Skip to content

Instantly share code, notes, and snippets.

@tommeier
Created July 16, 2012 01:00
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tommeier/3119536 to your computer and use it in GitHub Desktop.
Save tommeier/3119536 to your computer and use it in GitHub Desktop.
Bash script to download list of image urls to a location
while read p; do
echo "SAVING : $p"
filename=$(basename "$p")
extension="${filename##*.}"
filename="${filename%.*}"
echo " -- Filename : $filename"
curl -o "/file/save/location/$filename.$extension" "$p"
done < /soure/url/list/image_list.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment