Linux Lite Forums
how to download fullcircleissue through console - Printable Version

+- Linux Lite Forums (https://www.freecinema2022.gq/forums)
+-- Forum: Development (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=7)
+--- Forum: Scripting and Bash (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=32)
+--- Thread: how to download fullcircleissue through console (/showthread.php?tid=164)



how to download fullcircleissue through console - yrjo1 - 03-29-2014

#!/bin/bash


echo -n "What is the issue number of the first Full Circle Magazine to download?"
read number

echo "Number is $number"





for  number in $number
    do
      wget  "http://dl.fullcirclemagazine.org/issue"$number"_en.pdf" --directory-prefix=/home/user/Downloads
    done

echo ""
echo "Complete!"
#Remeber to change user to your own username and make the file executable. name it for example fullcircle.sh in your favorite editor.