Further it continues to explain that the rationale behind this is that. Improve this answer. I tried doing this with -A and realised that it is only for the file portion of the link. Didn't know --accept-regex would be matched against the entire URL. Why do I still need -A pdf though? In fact without it 'index. Would I be right to think that -A and --accept-regex are, despite the documentation, of different nature.
The former determines what files will remain after download whereas the latter determines what URLs must be fetched? Loax: Yes, they are of different nature. Added some more information. Elements of list may contain wildcards. Anthon Anthon Sign up or log in Sign up using Google. Optionally yet something I find appealing is adding -nH which will remove the hostname parent directory from the save path when downloading, you will see this below.
Time to use another flag which is --cut-dirs which will cut the directory names away starting after the hostname. This should be the accepted answer.
This solution fails in my case GNU Wget 1. It actually downloads files in parent directories not the desired result.
In my case it also fails. It seems that my wget GNU Wget 1. In openSUSE leap Good information I was able to use. Mike Sherrill 'Cat Recall' Hervey Allen Hervey Allen 31 3 3 bronze badges. Sign up or log in Sign up using Google. Please leave a comment to start the discussion. Please keep in mind that all comments are moderated and your email address will NOT be published.
Save my name, email, and website in this browser for the next time I comment. Notify me of followup comments via e-mail. You can also subscribe without commenting. This site uses Akismet to reduce spam. The Overflow Blog. Podcast what if you could invest in your favorite developer? Who owns this outage? Building intelligent escalation chains for modern SRE. Featured on Meta. Now live: A fully responsive profile. Reducing the weight of our footer. Linked 0. Related 2. Hot Network Questions.
Question feed. Super User works best with JavaScript enabled.
0コメント