Skip to content

Instantly share code, notes, and snippets.

@eramdam

eramdam/test-urls.sh Secret

Created Apr 5, 2014
Embed
What would you like to do?
A script to test then output the HTTP code of a lot of URLs with curl (using HEAD requests) (made for https://gist.github.com/Meroje/9994612 )
#!/bin/bash
while read LINE; do
curl -o /dev/null --silent --head --write-out '%{http_code}' "$LINE"
echo " $LINE"
done < ./urls.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.