#!/bin/bash # 'wh', by Mendel Cooper # This script released into the Public Domain, # but please give me credit if reused. if [ -z $1 ] then echo usage [wh, wh-radb, wh-cw] [domain-name] exit 1 fi case `basename $0` in "wh" ) whois $1@whois.ripe.net;; "wh-ripe") whois $1@whois.ripe.net;; "wh-radb") whois $1@whois.radb.net;; "wh-cw" ) whois $1@whois.cw.net;; * ) echo usage [wh, wh-radb, wh-cw] [domain-name];; esac exit