Revision: 13440
Updated Code
at April 23, 2009 17:53 by shazow
Updated Code
#!/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
Revision: 13439
Updated Code
at April 23, 2009 17:52 by shazow
Updated Code
#!/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
Revision: 13438
Updated Code
at April 23, 2009 17:50 by shazow
Updated Code
#!/bin/bash while read i; do echo -n "$i is "; ( whois $i | grep -F "$(echo -e 'No match\nNOT FOUND\nAVAIL')" -q && echo 'AVAILABLE! :D' || echo 'taken :('); done
Revision: 13437
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 23, 2009 17:34 by shazow
Initial Code
#!/bin/bash while read i; do echo -n "$i.com is "; ( whois $i.com | grep 'No match' > /dev/null && echo 'AVAILABLE! :D' || echo 'taken :('); done
Initial URL
Initial Description
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
Initial Title
Shell script for domain searching binges
Initial Tags
Initial Language
Bash