Skip to content

Instantly share code, notes, and snippets.

@adover
Created June 1, 2018 02:13
Show Gist options
  • Save adover/71a2122a741c915f2ff568fe9f271720 to your computer and use it in GitHub Desktop.
Save adover/71a2122a741c915f2ff568fe9f271720 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
rm -rf output.txt
for i in $(cat $1); do
content="$(curl -I -L "$i")"
echo "----------------------" >> output.txt
echo "Curl request for $i" >> output.txt
echo "$content" >> output.txt
echo "----------------------" >> output.txt
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment