I tried this script and merlyn's third iteration, but I found I much preferred
linklint because it produces excellent cross referenced HTML reports, and allows you to analyze a site both from a local perspective as well as a remote perspective and has an option to produce a "orphaned files" report.
-mark