This is an easy script to find out if a domain is available. It works with generic tld.
bash |copy code |?
1 #!/bin/bash2 while read i; do3 echo -n "$i is ";4 whois $i | grep -F "$(echo -e 'No matchnNOT FOUNDn AVAIL')" -q && echo 'AVAILABLE!犀利士
5 :D' || echo 'taken :(';6 done