Skip to content

Instantly share code, notes, and snippets.

@emrox
Created December 21, 2012 10:21
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 emrox/4351973 to your computer and use it in GitHub Desktop.
Save emrox/4351973 to your computer and use it in GitHub Desktop.
A One-Liner for checking Links in a .txt File for their returned Status-Codes (200, 301, 404, ...)
cat linklist.txt | xargs -i~ curl -o /dev/null --silent --write-out '~ %{http_code}\n' \~ > linklist.checked.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment