Skip to content

Instantly share code, notes, and snippets.

@jflaflamme
Last active November 8, 2018 03:29
Show Gist options
  • Select an option

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

Select an option

Save jflaflamme/d6dcfc258b5f5c614f6da071c6b48602 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. This override normal whois to accept http and https, strip that and pass it to normal whois function. Simply add to .bashrc
whois(){ /usr/bin/whois `echo $1|cut -d'/' -f3` }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment