in reply to Downloading a range of sequential files
I have a script exactly like this. It was one of my Very First Perl Scripts Ever (tm). I called it... wait for it... urlrange. :) One thing you might want to add is a way to specify the precision of numbers in the range. Your automagic precision detection will work in most cases, but occasionally it's nice to be able to specify.
Also, you might want to make a way to specify a suffix, rather than one being automatically determined. My script takes it's args as prefix first last suffix. So if I had http://blah.com/file01-blah.txt ..., I would run: urlrange http://www.blah.com/file0 1 5 -blah.txt.
Hopefully you will find this useful.
Update: you can look at my version at my website.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Downloading a range of sequential files
by Ionizor (Pilgrim) on Aug 06, 2003 at 22:42 UTC | |
by revdiablo (Prior) on Aug 06, 2003 at 23:55 UTC | |
by Ionizor (Pilgrim) on Aug 07, 2003 at 02:04 UTC |