Skip to content

Instantly share code, notes, and snippets.

@jflaflamme
Created November 8, 2018 02:17
Show Gist options
  • Select an option

  • Save jflaflamme/03348e431a27849d22845c0e258612c3 to your computer and use it in GitHub Desktop.

Select an option

Save jflaflamme/03348e431a27849d22845c0e258612c3 to your computer and use it in GitHub Desktop.
Because when we CTRL+L & CTRL+C in Chrome to get an URL/domain to use Whois, we need to strip the http or https:// at the beginning.Override normal whois to accept http and https, strip that and pass it to normal whois function.
whois(){ /usr/bin/whois `echo $1|awk -F[/:] '{print $4}'` }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment