looking for "wget"-like utility with "find"-like search

Robert P. J. Day rpjday at mindspring.com
Mon Dec 6 20:22:39 UTC 2004


On Mon, 6 Dec 2004, Aleksandar Milivojevic wrote:

> Robert P. J. Day wrote:
> [snip]
> >   what would be nice would be to say, go to
> > ftp://sources.redhat.com/pub/gcc, and recursively search for a file
> > with a given name.  if you find it, bring it back.  (even better would
> > be to allow wildcards, so i could say, go get
> > "gcc-3.4.3.{tar.bz2,tar.gz,tgz}".  whichever one you find first, grab
> > it and that will do nicely.
>
> Hmmm...  Have you attempted something like:
>
> wget -r -nd -A gcc-3.4.3.tar.gz ftp://sources.redhat.com/pub/gcc
> wget -r -nd -A gcc-4.0-20041205.tar.bz2 ftp://sources.redhat.com/pub/gcc

dang, that seems to do it.  i never noticed the "-A" option that makes
this work.  thanks loads.

rday




More information about the fedora-list mailing list