Skip to content

Instantly share code, notes, and snippets.

@tolleiv
Created March 1, 2016 23:44
Show Gist options
  • Save tolleiv/9a1cbcbfc1c1f452fa3e to your computer and use it in GitHub Desktop.
Save tolleiv/9a1cbcbfc1c1f452fa3e to your computer and use it in GitHub Desktop.
#!/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