Skip to content

Instantly share code, notes, and snippets.

@fulippo
Last active August 29, 2015 14:26
Show Gist options
  • Save fulippo/cce6ee726e68ce9b7b77 to your computer and use it in GitHub Desktop.
Save fulippo/cce6ee726e68ce9b7b77 to your computer and use it in GitHub Desktop.
Check status code of URL taken from text file
#!/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