Skip to content

Instantly share code, notes, and snippets.

@sergiandreplace
Created March 28, 2018 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergiandreplace/78430cff1c38d3ae9fea6ed29ead580b to your computer and use it in GitHub Desktop.
Save sergiandreplace/78430cff1c38d3ae9fea6ed29ead580b to your computer and use it in GitHub Desktop.
find wrong urls
for URL in `cat urls`; do curl -m 10 -s -X GET -I $1 "$URL" | grep HTTP/1.1 | (awk {'printf $2 '}; echo " $URL")| grep "^[^2]"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment