Last active
May 20, 2016 03:39
-
-
Save stekan/d3fde5c2b5bcf8d624d07ed14e090b4d to your computer and use it in GitHub Desktop.
Check HTTP-Header with wget
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/bash | |
urls='urls.txt' | |
log='log.txt' | |
while read url; do | |
result=$(wget --server-response --spider --timeout=10 $url 2>&1) | |
echo "$result" >> "$log" | |
done < $urls |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment