I need to do something like this, but in Python instead of Bash:
i=1
while [ $i <= 10 ] ; do
wget http://somewebsite.net/shared/fshared_$i.7z
$i = $i + 1
done
In Python I tried with the following:
import urllib, os
i = 0
while i <= 3:
os.system('wget http://somewebsite.net/shared/fshared_',i,'.7z')
i = i + 1
But it does not work, the variable is not concatenated correctly (or something similar).
Using Bash code does not work, apparently in Bash can't do something simple like: i = i + 1
Could anyone help me with this?
SOLVED! :)
Now I have the script both Bash and Python, actually with Python I have several variants.
Thanks to all... thanks a lot ^-^
How do I mark the topic as solved?
Thanks again.