Skip to content

Instantly share code, notes, and snippets.

@stekan
Last active May 20, 2016 03:39
Show Gist options
  • Save stekan/d3fde5c2b5bcf8d624d07ed14e090b4d to your computer and use it in GitHub Desktop.
Save stekan/d3fde5c2b5bcf8d624d07ed14e090b4d to your computer and use it in GitHub Desktop.
Check HTTP-Header with wget
#!/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