Results 1 to 3 of 3

Thread: wget -r (only recursive from within a specific directory)

  1. #1
    Join Date
    Oct 2007
    Location
    Earth
    Beans
    Hidden!
    Distro
    Ubuntu

    wget -r (only recursive from within a specific directory)

    It's been ages since I've used wget... though it looks like it could come in handy for one particular purpose... to recursively download everything contained within a specific directory. However, when invoking the recursive flag/option, it ends up downloading a lot more than what I asked for.

    Example:

    wget -r http://site.com/directoryZ/

    I only want to download recursively from "directoryZ" as a starting point.

    It ended up doing this:
    site.com/
    ./directoryA/
    ./directoryB/
    etc.

    How do I restrict recursive to only download all that is contained within one specific subdirectory?

    Thank you!

  2. #2
    Join Date
    May 2008
    Beans
    64

    Re: wget -r (only recursive from within a specific directory)

    -np is what you want to try

  3. #3
    Join Date
    Oct 2007
    Location
    Earth
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: wget -r (only recursive from within a specific directory)

    d'oh!

    ...and I read that, too, in the man file! lol thx

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •