Last active
October 27, 2015 16:56
-
-
Save NicHub/c9ec7bbc9db290297862 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# http://www.createdbypete.com/articles/simple-way-to-find-broken-links-with-wget/ | |
URL=http://pyr.ch/mooc-led-relecture/plan-mooc-led.html | |
echo "Vérification des liens de $URL" | |
wget \ | |
--spider \ | |
-o wget.log \ | |
-e robots=off \ | |
-w 1 \ | |
-r \ | |
-p $URL | |
grep -B 2 '404' wget.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment