LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to get just a subdir of a web sight using wget or whatever else works? (https://www.linuxquestions.org/questions/linux-general-1/how-to-get-just-a-subdir-of-a-web-sight-using-wget-or-whatever-else-works-4175620446/)

BW-userx 12-28-2017 11:45 AM

How to get just a subdir of a web sight using wget or whatever else works?
 
I am just wanting one little subdir off of one of slackwares sights, not the entire sight.

Code:

wget https://mirror.slackbuilds.org/slackware/slackware-14.2/source/xap/windowmaker/ -r
gets everything, so is there a way to limit this to only what I want, using wget or whatever works to do that?

Habitual 12-28-2017 02:31 PM

What directory and what do you "want" from it?

Assuming windowmaker/ you can use this:
wget -rnp --cut-dirs=5 https://mirror.slackbuilds.org/slack...p/windowmaker/


All times are GMT -5. The time now is 03:17 PM.