Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jun 2000 21:45:10 -0400
From:      Brian Reichert <reichert@numachi.com>
To:        Lyndon Nerenberg <lyndon@orthanc.ab.ca>
Cc:        Brian Reichert <reichert@numachi.com>, freebsd-net@FreeBSD.ORG
Subject:   Re: suggested hack for ntpdate flags
Message-ID:  <20000627214510.A6905@numachi.com>
In-Reply-To: <200006280110.e5S1AB657245@orthanc.ab.ca>; from lyndon@orthanc.ab.ca on Tue, Jun 27, 2000 at 07:10:10PM -0600
References:  <20000627151956.D1800@numachi.com> <200006280110.e5S1AB657245@orthanc.ab.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jun 27, 2000 at 07:10:10PM -0600, Lyndon Nerenberg wrote:
> >>>>> "Brian" == Brian Reichert <reichert@numachi.com> writes:
> 
>     Brian> ntpdate_flags="`sed -n 's/^server \(.*\)/\1/p' <
>     Brian> /etc/ntp.conf`"
> 
> I have always used:
> 
>   awk '/^server/ {print $2}' /etc/ntp.conf
> 
> The awk version doesn't suffer from lines in ntp.conf like:
> 
>   server ntp.foo.bar prefer
> 
> and I find it a bit more readable than the equivelent sed.

Yup, more rigorous.  I'll give it a shake...

> --lyndon
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-net" in the body of the message

-- 
Brian 'you Bastard' Reichert		reichert@numachi.com
37 Crystal Ave. #303			Daytime number: (603) 434-6842
Derry NH 03038-1713 USA			Intel architecture: the left-hand path


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000627214510.A6905>