Skip to content

Instantly share code, notes, and snippets.

@ddneat
Last active May 9, 2016 07:11
Show Gist options
  • Save ddneat/11366653 to your computer and use it in GitHub Desktop.
Save ddneat/11366653 to your computer and use it in GitHub Desktop.
curl multiple files from lorempixel and rename them

curl multiple files

curl -O -v --cookie "insert_cookie" https://images-url.com/?id=[0-10]

lorempixel with custom name

for i in {1..10}; do wget -O $i.jpg http://lorempixel.com/512/512; done;

download from lorempixel

for i in {1..100}; do wget http://lorempixel.com/512/512; done

rename multiple files

for filename in *; do mv "$filename" "${filename}.jpg"; done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment