Volker Kuhlmann wrote:

Nick(?) was looking for a short way to create a bunch of URLs differing
only in a numeral.

For http://localhost/foo[5-12], how about:

sh -c "wget http://localhost/foo{$(python -c 'print "{"+str(range(5,13)).replace(" ","")[1:-1]+"}"')}"

for number n to m, replace the range(5,13) with range(n,m+1)

Don't know about "short", but at least I didn't use perl :-)

Cheers,
Carl.

Reply via email to