Isn't this exactly what -E does? It doesn't let you specify arbitrary extensions (as diego seems to ask), but it certainly tacks .html on after downloaded text/html content (and plays nicely with -k).
-mjc Tony Lewis wrote: > I agree with Diego that it would be useful to rewrite file extensions; just > today I was mirroring a site with .aspx and I will have to manually rename > everything to .html so I could open the files locally in my browser. It is > important to do this within wget so that the links in the downloaded mirror > get updated too. > > In the meantime, I've got to write a script to do this for me. > > Tony > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Diego Efe > Sent: Monday, June 08, 2009 8:43 AM > To: [email protected] > Subject: [Bug-wget] Suggestion > > > Hi, > > I'm a user of your fantastic program. > I'm from Argentina, so please excuse my poor english! > > I have this suggestion: > Wouldn't be great if we can specify the extension of the downloaded > files, for example .htm? (and, ideally, that the relinking feature (-k) > could work with it too) > I'm thinking this because when we download with -r and the url points > to a wiki style site, whose pages have no extension, we can't get an > associated program to open them. > Is this clear? (I'm trying my best) > Is this functionality already in wget and I didn't find it? > > I hope this helps and if this is not the proper way to report this, > please tell me which is (I got this address from wget --help) > > Greetings, > > Diego F. > > > > ____________________________________________________________________________ > ________ > ¡Obtén la mejor experiencia en la web! > Descarga gratis el nuevo Internet Explorer 8. > http://downloads.yahoo.com/ieak8/?l=e1 > > > -- Micah J. Cowan Programmer, musician, typesetting enthusiast, gamer. Maintainer of GNU Wget and GNU Teseq http://micah.cowan.name/
