I use the following command to get all PDFs from a website:
wget --no-directories --content-disposition --restrict-file-names=nocontrol -e robots=off -A.pdf -r \ url
However, this only downloads .pdf files. How can I extend this command to also download .ppt and .doc files?
Best Answer
wget
's-A
option takes a comma-separated accept LIST, not just a single item.See
man wget
and search for-A
for more details.