Skip to content

Instantly share code, notes, and snippets.

@keima
Created April 4, 2016 15:03
Show Gist options
  • Select an option

  • Save keima/361aa47b1f1fd565c5bfae496e3a883f to your computer and use it in GitHub Desktop.

Select an option

Save keima/361aa47b1f1fd565c5bfae496e3a883f to your computer and use it in GitHub Desktop.
#!/bin/sh
CNT=1
for url in `cat images.txt`
do
curl -o `printf %03d $CNT`.jpg $url
CNT=$(( CNT + 1 ))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment