whoisコマンドから特定の行を抜き出す
grep使えばいい話。たとえばcountry行を抜くなら
sippue@sippue-eeepc901:~$ whois 59.106.108.86 | grep country country: JP country: JP country: JP #hatena.ne.jp
とかでてくる。後は標準出力を読み取るなり保存するなりして活用する。
grep使えばいい話。たとえばcountry行を抜くなら
sippue@sippue-eeepc901:~$ whois 59.106.108.86 | grep country country: JP country: JP country: JP #hatena.ne.jp
とかでてくる。後は標準出力を読み取るなり保存するなりして活用する。