Skip to content

Instantly share code, notes, and snippets.

@turing4ever
Created January 3, 2019 06:16
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 turing4ever/3e28c1eeca7283fadbe6748d27fa7288 to your computer and use it in GitHub Desktop.
Save turing4ever/3e28c1eeca7283fadbe6748d27fa7288 to your computer and use it in GitHub Desktop.
bash script that validates a list of URLs using curl
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