diff options
author | makefu <root@pigstarter.de> | 2014-06-16 17:01:39 +0200 |
---|---|---|
committer | makefu <root@pigstarter.de> | 2014-06-16 17:01:39 +0200 |
commit | 6bad25925c16d3061f5409e07f72636284bb373f (patch) | |
tree | a70eb9b137e48f96ac37730083dcd52480464458 | |
parent | 0fe9b8fbad6801d244d1df70bbf7bdb1d2c599f9 (diff) |
update whois for Reaktor
-rwxr-xr-x | commands/whois | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/commands/whois b/commands/whois new file mode 100755 index 0000000..ca6ad4d --- /dev/null +++ b/commands/whois @@ -0,0 +1,4 @@ +#!/usr/bin/python +(! type whois >/dev/null 2>/dev/null) && echo "whois does not exist" && exit 0 + +whois "${1?usage: $0 domain}" | sed -e '/^$/d' -e '/^%/d' -e '/^Nserver/d' -e 's/^\[.*/---/' -e '/^Changed/d' -e '/^Status/d' -e '/^Type/d' -e '/^PostalCode/d' -e '/^Phone/d' -e '/^Fax/d' -e '/Last update of WHOIS database/Q' -e '/ID:/d' |