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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to