diff options
author | makefu <github@syntax-fehler.de> | 2014-07-08 18:29:19 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2014-07-08 18:29:19 +0200 |
commit | fcf4a7f64463a8190260ab2c138e428f07cadee7 (patch) | |
tree | 938f718f0fffa71493e86ca42afdd0d6596afbcd /Reaktor/commands/whois | |
parent | 033ce69ba717841f5c9834f4680cdd6db625ce4b (diff) | |
parent | da8f9b0ea4c73aa90244f8e9eba4d1f5af9af611 (diff) |
Merge branch 'master' of ssh://github.com/krebscode/painload
Diffstat (limited to 'Reaktor/commands/whois')
-rwxr-xr-x | Reaktor/commands/whois | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Reaktor/commands/whois b/Reaktor/commands/whois new file mode 100755 index 00000000..b0733891 --- /dev/null +++ b/Reaktor/commands/whois @@ -0,0 +1,4 @@ +#!/bin/sh +(! 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' |