Re: How to download multiple "numbered" files with wget



On 2007-11-27, Christian Herenz wrote:


Theo v. Werkhoven wrote:

http://bla.edu/~foouser/1.html
http://bla.edu/~foouser/2.html
...
http://bla.edu/~foouser/100.html

for i in $(seq 100);do curl -O http://bla.edu/~foouser/$i.html;done

Theo

as stated above, this works really well. but i just wondered, how to
make it for files like .../001.htm ... possibly a little more difficult?

for i in $(seq -w 100)
do
curl -O "http://bla.edu/~foouser/$i.html";
done

--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
.