Created
December 28, 2023 07:01
-
-
Save sbryans/bb966314cdfa44d1f981dfcce0bdd110 to your computer and use it in GitHub Desktop.
Code Snippet: Batch HTTP Code Inspection
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
#!/bin/bash | |
while read LINE; do | |
curl -o /dev/null --silent --head --write-out "%{http_code} $LINE\n" "$LINE" | |
done < ~/Desktop/list.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment