<div dir="ltr">On Tue, Dec 18, 2012 at 5:10 PM, Pierre Casenove <span dir="ltr"><<a href="mailto:pcasenove@gmail.com" target="_blank">pcasenove@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello list,<div>The RHN predefined macro rhn.system.hostname allows you to get the FQDN of a client.</div>
<div>In order to manage the /etc/hosts file on some hosts, I would like to get the FQDN and the short name.</div>
<div>How could I perform this?</div><div><br></div></div></blockquote><div><br></div><div style>How about "cut -d. -f 1" from the FQDN?</div><div style><br></div><div style>Regards,</div><div style>Jørgen</div>
<div style><br></div><div style><br></div></div></div></div>