[CentOS] OT: get files with wget

Bob Beers bob.beers at gmail.com
Thu Apr 10 12:22:36 UTC 2008


On Thu, Apr 10, 2008 at 7:39 AM, Frank Büttner <frank-buettner at gmx.net> wrote:
> Sudev Barar schrieb:
>
>
> > On 10/04/2008, Frank Büttner <frank-buettner at gmx.net> wrote:
> >
> > > Hello,
> > >  how can I get all files from an directory of an web server.
> > >  An simple wget http://www.foo.bar/sample/* will not work:(
> > >
> >
> > Perhaps you should do:
> > wget -r http://www.foo.bar/sample
> >
>
>  Hm,
>  this will download the whole www.foo.bar site:(
>

man wget:

-r   --> recursive
-nd --> no directories (still gets the whole site)
-l N --> max level of recursion (default max is 5)

-- 
HTH,
-Bob



More information about the CentOS mailing list