Created
January 3, 2019 06:16
-
-
Save turing4ever/3e28c1eeca7283fadbe6748d27fa7288 to your computer and use it in GitHub Desktop.
bash script that validates a list of URLs using curl
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 new.txt | xargs -I{} sh -c 'printf {}; curl -s -o /dev/null -w " %{http_code}\n" {};' | grep -v 200 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment