[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Getting hostname



Marc Singer wrote:
> Have you tried 
>   host --version

Doesn't exist. However, if you don't insist on awk and grep, you can do

host  192.25.206.10 | head -n 1 | sed 's/.* //; s/\.$//'

Cheers

T.

P.S.: A versioned dependency would disallow the provide. Banning bind9-users
without good reason may not good practice, though.

P.P.S.: [Apologies to Marc for the PM sent initially.]

Attachment: pgpTpaLoU5EZ6.pgp
Description: PGP signature


Reply to: