September 25, 2015

Wget script

Looking for help making a script that let's me specify the amount of multiple wget instances each time I run it.

echo -n "How many instances? "; read times

fileToGet=big_file_on_test_server

for i in {1..$times}
do
wget $fileToGet -o netinsta-${i}-{$$}.log --output-document=/dev/null --background
done

Click Here!