/ Published in: Bash
                    
                                        
Takes input from stdin, so you can keep typing in domains to see if they're available. Requires `whois` to be installed. 
Just paste it into your terminal, and start typing in domains (e.g. `google.com` and hit enter) and it will tell you if the domain is available or not.
Tested with .com, .net, .org, .ca, you're welcome to write a more robust version!
# Example
$ while read i; do echo -n "$i is "; ( whois $i | grep -F "$(echo -e 'No match\nNOT FOUND\n AVAIL')" -q && echo 'AVAILABLE! :D' || echo 'taken :(');
ohhai.net
ohhai.net is taken :(
omgbbqponies.com
omgbbqponies.com is AVAILABLE! :D
                Just paste it into your terminal, and start typing in domains (e.g. `google.com` and hit enter) and it will tell you if the domain is available or not.
Tested with .com, .net, .org, .ca, you're welcome to write a more robust version!
# Example
$ while read i; do echo -n "$i is "; ( whois $i | grep -F "$(echo -e 'No match\nNOT FOUND\n AVAIL')" -q && echo 'AVAILABLE! :D' || echo 'taken :(');
ohhai.net
ohhai.net is taken :(
omgbbqponies.com
omgbbqponies.com is AVAILABLE! :D
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
#!/bin/bash
while read i; do
echo -n "$i is ";
whois $i | grep -F "$(echo -e 'No match\nNOT FOUND\n AVAIL')" -q && echo 'AVAILABLE! :D' || echo 'taken :(';
done
Comments
 Subscribe to comments
                    Subscribe to comments
                
                