X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=chost;h=c02c8c2595a3483117e62bc212237bec5a67a0db;hb=ee5c5007f3426705012f2943c345b1194a988c62;hp=616874151a0aa5c087c1c275198eb4134cbc530e;hpb=e6c8a36522847eca91819ab3eb656dd824bc3e3c;p=automated-distro-installer diff --git a/chost b/chost index 6168741..c02c8c2 100755 --- a/chost +++ b/chost @@ -10,4 +10,4 @@ host=$1 addr=$(host $host | sed -rn 's/^\S+ has address //p;T;q') h=$(host $addr) h=${h##* } -echo ${h%%.*} +echo $h