Last active
December 2, 2015 09:07
-
-
Save takuma-saito/eec4c1af24ade85fbd18 to your computer and use it in GitHub Desktop.
Link checker
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 | |
# you shold modify /etc/resolv.conf | |
urls=$1 | |
cat $urls | xargs -P 0 -I{} curl -L -sSfk -m 10 -o /dev/null -w "%{http_code} %{url_effective}\n" {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment