Friday 2 December 2011

Bash script

Bash script

Hi
I need a linux shell bash code to download from a website some pictures that listed begining from 1.jpg to 800.jpg how could i write script that does for me.
I tried some thing like that.


Code:

#!/bin/sh
for i in {1..800};

#
#http://www.bbb.org/1.jpg
#http://www.bbb.org/2.jpg
#.....
do "/usr/bin/wget http://www.bbb.org/$i.jpg";
done

Thanks

No comments:

Post a Comment