Skip to content

Instantly share code, notes, and snippets.

@raggiskula
Forked from oliverbenns/script.sh
Created October 10, 2018 11:16
Domain Check Availability (bash script)
# 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