ramdisc
October 28th, 2005, 05:42 PM
Hello,
Can someone please help me write an interactive bash script if it's not too much trouble?
Okay, please bear with me, I am going to speak in plain English.
This is what I got as a base:
for I in `seq 1 20`; do wget websitegoeshere$I.rar; done
Here's an imaginary interaction bash script in Konsole:
ramdisc@linux:~>./getit.sh
Please insert URL
ramdisc@linux:~>http://website.com/dir/foo
I run the script. The scrip then asks me for the URL. I enter the URL and hit enter. Then the script starts doing its job of downloading all 20 files (from foo1.rar to foo20.rar).
Not sure if anyone can understand me. :/
Can someone please help me write an interactive bash script if it's not too much trouble?
Okay, please bear with me, I am going to speak in plain English.
This is what I got as a base:
for I in `seq 1 20`; do wget websitegoeshere$I.rar; done
Here's an imaginary interaction bash script in Konsole:
ramdisc@linux:~>./getit.sh
Please insert URL
ramdisc@linux:~>http://website.com/dir/foo
I run the script. The scrip then asks me for the URL. I enter the URL and hit enter. Then the script starts doing its job of downloading all 20 files (from foo1.rar to foo20.rar).
Not sure if anyone can understand me. :/