Skip to content

Instantly share code, notes, and snippets.

@kevin-miles
Created September 17, 2014 02:37
Show Gist options
  • Save kevin-miles/a48dd2a64d0cb5ea2c50 to your computer and use it in GitHub Desktop.
Save kevin-miles/a48dd2a64d0cb5ea2c50 to your computer and use it in GitHub Desktop.
cURL file of URLs and print response
#!/bin/bash
while read LINE; do
curl -o /dev/null --silent --head --write-out '%{http_code}' "$LINE"
echo " $LINE"
done < url-list.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment