Created
June 1, 2018 02:13
-
-
Save adover/71a2122a741c915f2ff568fe9f271720 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/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