Linux Lite Forums

Development => Scripting and Bash => Topic started by: yrjo1 on March 29, 2014, 08:02:47 AM

Title: how to download fullcircleissue through console
Post by: yrjo1 on March 29, 2014, 08:02:47 AM
#!/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.