Skip to content

Instantly share code, notes, and snippets.

@haraldmartin
Forked from defunkt/gist:217660
Created October 24, 2009 18:40
Show Gist options
  • Save haraldmartin/217664 to your computer and use it in GitHub Desktop.
Save haraldmartin/217664 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# Save in your .bash_profile then: isreg domain.com
function isreg {
whois $1 | grep -q 'No match' && echo "No" || echo "Yes"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment