Skip to content

Instantly share code, notes, and snippets.

@corporealfunk
Created July 5, 2011 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save corporealfunk/1065049 to your computer and use it in GitHub Desktop.
Save corporealfunk/1065049 to your computer and use it in GitHub Desktop.
download all files in typical Apache web directory "index" page
curl --silent http://example.com/images/loggedout/ | grep "a href" | grep png | cut -d ' ' -f 8 | cut -d '=' -f 2 | cut -d '"' -f 2 | sed "s/^/http:\/\/example.com\/images\/loggedout\//" | xargs wget
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment