Created
February 28, 2014 21:57
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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