
* Perry Lorier <perry(a)coders.net> [2005-08-12 02:00]:
wget http://www.wlug.org.nz/archive/wiki/ -O - | sed -e 's/.*<a href="\(.*\)".*/\1/' | grep sql.gz | tail -n 1 | xargs -ixxx echo wget http://www.wlug.org.nz/archive/wiki/xxx
wget http://www.wlug.org.nz/archive/wiki/ -O - | sed -e 's/.*<a href="\(.*\)".*/http://www.wlug.org.nz/archive/wiki/\1/' | grep sql.gz | tail -n 1 | wget -i - Or install the HTML::Parser module (`sudo cpan HTML::Parser`), then download <http://plasmasturm.org/code/linkextor/linkextor>, and then it becomes simply linkextor -f 'a::sql\.gz$' http://www.wlug.org.nz/archive/wiki/ | tail -1 | wget -i If I may say so myself, being the author of the beast, linkextor is terrifically useful when you need to scrape pages to run automated downloads. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>