Created
February 13, 2011 07:25
-
-
Save Leechael/824516 to your computer and use it in GitHub Desktop.
Download all pdf/ppt/pptx/zip/doc/odp files in page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -------------------------------------------------------------------------------------- | |
# Download all pdf/ppt/pptx/zip/doc/odp files in page. | |
# | |
# Usage: | |
# xxx@xxx:~$ wget_slides http://velocityconf.com/velocity2010/public/schedule/proceedings | |
# Download all velocity 2010 slides. | |
# -------------------------------------------------------------------------------------- | |
function wget_slides () { | |
curl -sX GET "$1" | grep -or 'http:\/\/[^\"]\+\.\(pdf\|pptx\?\|zip\|doc\|odp\)' | awk '{print "\""$0"\""}' | xargs wget | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment