Created
October 31, 2012 23:43
Simple Script to Iterate over a List of URLs and Output their Status Code
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 | |
while read URL; do | |
curl -o /dev/null --silent --head --write-out '%{url_effective}\t%{http_code}\t%{redirect_url}\n' "$URL" | |
done < urls.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment