Skip to content

Instantly share code, notes, and snippets.

@igorglotov
Last active August 29, 2015 14:01
Show Gist options
  • Save igorglotov/76912b5620c1345ea8bd to your computer and use it in GitHub Desktop.
Save igorglotov/76912b5620c1345ea8bd to your computer and use it in GitHub Desktop.
downloader 2.0
#!/bin/bash
for i in 2011 2012 2013 2014
do
for j in 01 02 03 04 05 06 07 08 09 10 11 12
do
for k in $(seq 1 9999)
do
wget -O $i-$j-$(printf %04d ${k%}).png http://lib.glavteh.ru/magazine/$i-$j/full/$(printf %04d ${k%}).png || break
done
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment