Created
March 1, 2016 23:44
-
-
Save tolleiv/9a1cbcbfc1c1f452fa3e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/sh | |
# Simple script to check a site for dead links etc. | |
# Usage: | |
# > spider.sh www.example.org 5 | |
# to check example,org and follow links until you reacha depth of 5 | |
wget --spider -r -nd -nv -H -l ${2:=4} -w 1 -D $1 -o site.log "http://${1}/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment