Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

If I don't want to have to download the files found in a specific url path manually, what options do I have? Using wildcards fail:

$ wget 'http://www.shinken-monitoring.org/pub/debian/*deb'
Warning: wildcards not supported in HTTP.
....

This of course assumes that I don't know the filenames in advance.

share|improve this question
add comment

1 Answer

Try this:

wget -r -l1 --no-parent -A ".deb" http://www.shinken-monitoring.org/pub/debian/

-r recursively
-l1 to a maximum depth of 1
--no-parent ignore links to a higher directory
-A "*.deb" your pattern

share|improve this answer
    
Although it's true in this case - this does assume that the web server returns a page at the URL that lists all the files. If it returns an index page without any of the mentioned files, wget can magically get them. –  EightBitTony Aug 17 '11 at 18:57
    
I think that an option -nd also will be useful here. It allows to download matched files to the current directory without creating a hierarchy of directories. –  annndrey Jul 10 at 13:54
add comment

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.