Skip to content

Instantly share code, notes, and snippets.

@ascv
Last active August 29, 2015 13:57
Show Gist options
  • Save ascv/9420996 to your computer and use it in GitHub Desktop.
Save ascv/9420996 to your computer and use it in GitHub Desktop.
Download all pdfs from a remote directory.
# Download all pdfs from a remote directory
grep -o '\"[a-zA-Z]*\.pdf\"' index.html |
sed s/\"//g |
sed -e "s/^/http:\/\/web.ipac.caltech.edu\/staff\/fmasci\/home\/statistics\_refs\//" |
xargs wget
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment