Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to mirror a website. It's built-on like this.

  • abc.com/A/B/1/...
  • abc.com/A/D/2/...
  • abc.com/A/R/3/...
  • abc.com/A/G/4/...
  • abc.com/A/F/5/...
  • abc.com/A/B/6/...

And I only want to get all links from this link:

  • abc.com/A/G/4/...

Is there any command in wget, to get all links only starting like this: abc.com/A/G/4/ ?

share|improve this question
    
possible duplicate of wget recursive limited within subdomain –  Karan May 26 '13 at 23:33
    
Yes, there was a good tip for me :) –  superuser May 26 '13 at 23:42

1 Answer 1

Yes, the solution is -I:

  -I list
   --include-directories=list
       Specify a comma-separated list of directories you wish to follow
       when downloading.  Elements of list may contain wildcards.

E.g.,

wget http://abc.com/A/G/4/ --no-parent -I /A/G/4
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.