in reply to Downloading a lot of files

(since TWTOWTDI can include shell utils ;) ) bash syntax (though less error handling, which could partially be fixed with a test of the filename and of $?; could also tweak wget's cmdline options, or use curl instead of wget, etc):
url='http://download.fedora.redhat.com/pub/fedora/linux/core/4/i386/os +/Fedora/RPMS/' for f in `cat upgrade.log`; do wget $url$f; done
But obviously LWP::Simple is cooler. :)

Replies are listed 'Best First'.
Re^2: Downloading a lot of files
by Corion (Patriarch) on Jun 24, 2005 at 06:57 UTC

    That way you lose the feature for persistent connections of wget. I use wget -i upgrade.log if I have a file or open WGET, "| wget -i -" if I don't know the list of URLs beforehand.