-
-
Save raggiskula/2f5c25aab9d53da1c4ba6ed1a0ff7efb to your computer and use it in GitHub Desktop.
Domain Check Availability (bash script)
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
# 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