Date: Sun, 4 Nov 2001 13:30:08 -0800 From: Bill Fenner <fenner@research.att.com> To: des@ofug.org Cc: david@catwhisker.org, current@freebsd.org Subject: Re: latest -current broke netscape's name lookup? Message-ID: <200111042130.NAA06253@windsor.research.att.com> References: <200111030248.fA32mCs53722@bunrab.catwhisker.org> <xzplmhoa7be.fsf@flood.ping.uio.no>
next in thread | previous in thread | raw e-mail | index | archive | help
awk does not copy input lines to its output unless asked; you can
ask with either an explicit "print" or an empty action.
Using an input file like:
gibberish
stuff
this doesn't match
here is some garbola
I don't want this file in the ouptut
here's some more stuff
and another line
and another
and another
ooh baby
hosts: files dns
don't print this either
the awk program in /etc/rc.network, without the //{next}, and
changing "quit" to "exit", prints:
# Auto-generated, do not edit
hosts
bind
using either the old gawk or the new awk.
That //{next} may have been necessary during some phase of
script development, but is not necessary now.
Bill
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111042130.NAA06253>
