Skip to content

Instantly share code, notes, and snippets.

@photomattmills
Created February 11, 2016 07:16
Show Gist options
  • Save photomattmills/80115500c47b8782b5b0 to your computer and use it in GitHub Desktop.
Save photomattmills/80115500c47b8782b5b0 to your computer and use it in GitHub Desktop.
whois with the cruft removed
#! /usr/bin/env bash
# put this somewhere in your $PATH, and enjoy! most of the regex was @cczona, and the sort | uniq was me.
whois $1 | sed "s/^ *//g" | grep -i -v "^(Please|Billing|Admin|Tech|register|\d\|>>>|Registr|Sponsoring)|whois" | grep ":" | grep -v "^(with|NOTICE|by the|to:|please)" | sort -f | uniq -i
@photomattmills
Copy link
Author

If you happen to be a homebrew user, you can do this

curl https://gist.github.com/mattmills/80115500c47b8782b5b0/raw/2fa6fb1dfe096b20131d47c153eed2f08eeb8117/wb > /usr/local/bin/wb
chmod +x /usr/local/bin/wb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment