Skip to content

Instantly share code, notes, and snippets.

@pedrokoblitz
Created October 22, 2013 17:44
Show Gist options
  • Save pedrokoblitz/7104872 to your computer and use it in GitHub Desktop.
Save pedrokoblitz/7104872 to your computer and use it in GitHub Desktop.
# download Springer Link Books via University Proxy
export http_proxy="http://proxy.zfn.uni-bremen.de:3128";
wget -r -l 1 --proxy-user STUD_IP_USERNAME --proxy-passwd STUD_IP_PASSWORD LINK_TO_BOOK;
for i in link.springer.com/content/pdf/*;
do j=`echo $i | cut -f 1`; j=$j".pdf";
mv $i $j;
done
# rename files downloaded from StudIP
rename 's/\[[0-9]+\]_//' *
# copy image files into a subdirectory and rescale them to a width of 1024
mkdir small_images;
for i in *.jpg;
do convert "$i" -resize 1024x "small/$i" ;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment