On Wednesday 20 April 2005 12:38 am, Oliver Schulze L. wrote:
> Hi,
> it would be nice if you could tell wget not to download a file if the URL
> matches some pattern. The pattern could be shell like or a regular
> expresion.
>
> For example, if you do a mirror of a ftp site, and you don't want to
> download
> the directories that match the "i686" pattern, you should run a command
> like this:
>
> wget -m -url-reject="*i686*" ftp://ftp.updates.distro.org/pub/
>
> Then, wget will ignore this paths:
> ftp://ftp.updates.distro.org/pub/distro1/i686/
> ftp://ftp.updates.distro.org/pub/distro2/i686/
> ftp://ftp.updates.distro.org/pub/distro3/i686/
>
> but will download this ones:
> ftp://ftp.updates.distro.org/pub/distro1/i386/
> ftp://ftp.updates.distro.org/pub/distro1/athlon/
> ftp://ftp.updates.distro.org/pub/distro2/i386/
> ftp://ftp.updates.distro.org/pub/distro2/athlon/
> ftp://ftp.updates.distro.org/pub/distro3/i386/
> ftp://ftp.updates.distro.org/pub/distro3/athlon/
>
> Since you don't have the list of all directories in the ftp site, this
> features
> can really help wget becomes a even more powerfull mirror tool.

hi oliver,

for the moment the development of wget is in feature freeze state for the 
upcoming 1.10 release. but we are considering to add regex support to wget 
1.11. stay tuned ;-)

-- 
Aequam memento rebus in arduis servare mentem...

Mauro Tortonesi

University of Ferrara - Dept. of Eng.    http://www.ing.unife.it
Institute of Human & Machine Cognition   http://www.ihmc.us
Deep Space 6 - IPv6 for Linux            http://www.deepspace6.net
Ferrara Linux User Group                 http://www.ferrara.linux.it

Reply via email to