Skip to content

Instantly share code, notes, and snippets.

@sbryans
Created December 28, 2023 07:01
Show Gist options
  • Save sbryans/bb966314cdfa44d1f981dfcce0bdd110 to your computer and use it in GitHub Desktop.
Save sbryans/bb966314cdfa44d1f981dfcce0bdd110 to your computer and use it in GitHub Desktop.
Code Snippet: Batch HTTP Code Inspection
#!/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