Created
September 3, 2018 13:42
-
-
Save jgamblin/babfc5296ac34c8b90236eddfb0a4684 to your computer and use it in GitHub Desktop.
Simple Bash Script To Take A Long List Of Domains And Return Only Ones With Webpages.
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
#!/bin/bash | |
for url in $(cat domains.txt) | |
do | |
if curl --output /dev/null --silent --head --fail "$url"; then | |
printf "$url \\n" | |
else | |
: | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment