Skip to content

Instantly share code, notes, and snippets.

@JTLR
Created April 26, 2018 09:04
Show Gist options
  • Save JTLR/1592a5396e2f0b1fc02379112008cfe7 to your computer and use it in GitHub Desktop.
Save JTLR/1592a5396e2f0b1fc02379112008cfe7 to your computer and use it in GitHub Desktop.
while read url; do
url=${url%$'\r'}
echo $url >> response.txt
curl --head $url >> response.txt
done <urls.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment