The script is able to download any range of Full Circle Magazine issues. You can download one issue, the first issue until the last issue, and any specific issues of FCM e.g. issue 43 to issue 65.
OK, please open your favourite text editor and create a new file, then copy-paste the following code:
Difficult to read? Please see the code in pastebin.
- #!/bin/bash
- echo -n "First issue you want to download? "
- read firstissue
- echo ""
- echo -n "The last issue you want to download? (equal or greater than the first issue) "
- read lastissue
- for a in `seq $firstissue $lastissue`
- do
- wget -U Mozilla "http://dl.fullcirclemagazine.org/issue"$a"_en.pdf"
- done
- echo "Done!"
If you are too lazy copying the code, you can download the script which I've created here.
Once the script is ready, please add the "execute" permission to it by executing the following command:
Well, now you can the script "sh fcm.sh" and follow on screen instruction. If you encounter some connection problem or any problem which stops your download, the script will automatically resume the download when you run it.
- chmod
+x fcm.sh
Regards :)
0 comments:
Post a Comment