Skip to content

Instantly share code, notes, and snippets.

@eywu
Created October 31, 2012 23:43
Simple Script to Iterate over a List of URLs and Output their Status Code
#!/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