Skip to content

Instantly share code, notes, and snippets.

@ranadeep47
Forked from tommeier/image_save.sh
Created April 30, 2018 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ranadeep47/08bbb8ed4eb846fc40036f1270f14f8d to your computer and use it in GitHub Desktop.
Save ranadeep47/08bbb8ed4eb846fc40036f1270f14f8d 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