-
-
Save photomattmills/80115500c47b8782b5b0 to your computer and use it in GitHub Desktop.
whois with the cruft removed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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