iankelling.org
/
git
/
automated-distro-installer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dirinstall fixes/improvements, other minor changes
[automated-distro-installer]
/
chost
diff --git
a/chost
b/chost
index 616874151a0aa5c087c1c275198eb4134cbc530e..c02c8c2595a3483117e62bc212237bec5a67a0db 100755
(executable)
--- 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