Skip to content

Instantly share code, notes, and snippets.

@kemelzaidan
Created February 28, 2014 21:57
Show Gist options
  • Save kemelzaidan/9280846 to your computer and use it in GitHub Desktop.
Save kemelzaidan/9280846 to your computer and use it in GitHub Desktop.
Simple bash script to download all (or selected) editions from the Full Circle Magazine (<http://fullcirclemagazine.org/>) and other possible stuff
#!/bin/bash
#
# Originaly from http://fullcirclemagazine.org/tag/script/
echo -n "What is the issue number of the first Full Circle Magazine to
download? "
read firstissue
echo ""
echo -n "What is the issue number of the last Full Circle Magazine to
download? ( > or = the previous number) "
read lastissue
cd ~/Desktop # ~ brings you to the home directory of the user and from
there I wanted to use my folder 'Desktop'
for a in `seq $firstissue $lastissue`
do
wget -U Mozilla "http://dl.fullcirclemagazine.org/issue"$a"_en.pdf"
done
echo ""
echo "Complete!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment