Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How would I download a list of files from a file server like this one ?

I suppose I could use wget but then it tries to get all the links and the html file as well. Is there a better tool to accomplish this?

share|improve this question
just to clarify your question: you just want the list of files which could be downloaded from the server, not the files itself (yet)? – akira Sep 26 '09 at 4:57
In what way is a command like ` wget --no-verbose --spider --no-directories --recursive --level=2` not working for you? If you could be more specific that might help – DaveParillo Sep 26 '09 at 5:02

You can specify what file extensions wget will download when crawling pages:

wget -r -A zip,rpm,tar.gz

this will perform a recursive search and only download files with the .zip, .rpm, and .tar.gz extensions.

share|improve this answer

supposing you really just want a list of the files on the server without fetching them (yet):

%> wget -r -np --spider 2>&1 | awk -f filter.awk | uniq

while 'filter.awk' looks like this

/^--.*--  http:\/\/.*[^\/]$/ { u=$3; }
/^Length: [[:digit:]]+/ { print u; }

then you possibly have to filter out some entries like

share|improve this answer

Your Answer


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