Created
January 20, 2017 10:49
-
-
Save oliverbenns/0740082a4590a7c733e24e6bf65b9774 to your computer and use it in GitHub Desktop.
Domain Check Availability (bash script)
This file contains 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
# Bash domain checker | |
# Usage: sh script.sh [domain name] | |
# If it says "No match for [domain]", it is available. | |
tlds=("com" "net" "co" "io" "co.uk") | |
for tld in "${tlds[@]}" | |
do | |
whois "$1.$tld" | grep "No match for"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment