Skip to content

Instantly share code, notes, and snippets.

@dennyweiss
Forked from antonbabenko/curl_all.sh
Last active August 29, 2015 14:11
Show Gist options
  • Save dennyweiss/e08d656828ee34dd3ae6 to your computer and use it in GitHub Desktop.
Save dennyweiss/e08d656828ee34dd3ae6 to your computer and use it in GitHub Desktop.
#!/bin/bash
while read LINE; do
curl -o /dev/null --silent --progress-bar --head --write-out '%{http_code} %{time_starttransfer} %{url_effective}\n' "$LINE" >> urls_result.txt
done < urls.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment