From owner-freebsd-net Tue Jun 27 18:45:55 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail.numachi.com (numachi.numachi.com [198.175.254.2]) by hub.freebsd.org (Postfix) with SMTP id 697B837C543 for ; Tue, 27 Jun 2000 18:45:13 -0700 (PDT) (envelope-from reichert@numachi.com) Received: (qmail 6927 invoked by uid 1001); 28 Jun 2000 01:45:10 -0000 Date: Tue, 27 Jun 2000 21:45:10 -0400 From: Brian Reichert To: Lyndon Nerenberg Cc: Brian Reichert , freebsd-net@FreeBSD.ORG Subject: Re: suggested hack for ntpdate flags Message-ID: <20000627214510.A6905@numachi.com> References: <20000627151956.D1800@numachi.com> <200006280110.e5S1AB657245@orthanc.ab.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre4i In-Reply-To: <200006280110.e5S1AB657245@orthanc.ab.ca>; from lyndon@orthanc.ab.ca on Tue, Jun 27, 2000 at 07:10:10PM -0600 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, Jun 27, 2000 at 07:10:10PM -0600, Lyndon Nerenberg wrote: > >>>>> "Brian" == Brian Reichert 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