Created
September 13, 2012 20:49
-
-
Save aaronlidman/3717548 to your computer and use it in GitHub Desktop.
get a list of links
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
# remove the -v on the last grep to change from blacklist to whitelist | |
wget --spider --force-html -r -l2 http://example.com 2>&1 | grep '^--' | awk '{ print $3 }' | grep -v '\.\(css\|js\|png\|gif\|jpg\)$' > wget.out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment