EnderUNIX Team.


EnderUNIX tips

Mail to My Friend , Home Page

[ Shell Scripting ]

"wget - fetching pages with parameters" - Parahat Melayev - (2005-08-24 17:10:28)   [16594]

i=0 # loop number
p=371 # finish
s=1000 # starting page
g=0 # page which will be fetched

# If you need to use proxy
export http_proxy="http://192.168.43.4:3128"

while [ "$i" -lt "$p" ] # loop
do
g=$(($s + $i))
wget --proxy=on "http://acm.timus.ru/problem.aspx?space=1&num=$g"
i=$(($i + 1))
done


Mail to My Friend , Home Page