X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=chost;h=c02c8c2595a3483117e62bc212237bec5a67a0db;hb=ba2a6b887fe5a9ed627e9f0947265b37abbcf7aa;hp=616874151a0aa5c087c1c275198eb4134cbc530e;hpb=da61a304a10de72288782a9d872769fe44576f50;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