Created
December 21, 2012 10:21
-
-
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, ...)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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