Skip to content

Instantly share code, notes, and snippets.

@xexu
Created October 2, 2014 16:30
Show Gist options
  • Save xexu/6bf68d3e9298f41f7b40 to your computer and use it in GitHub Desktop.
Save xexu/6bf68d3e9298f41f7b40 to your computer and use it in GitHub Desktop.
Check http status of urls in a file
for i in `cat urls.txt`; do curl -s -o /dev/null -w "%{http_code} " $i; echo $i; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment