On Sun, 18 Jan 2004, Rob wrote:
> David Fleck wrote on Sunday January 18, 2004:
> > Well, you didn't mention awk, but...
> >
> >
> > awk '$0 ~ /^PATTERN/ {x=1}; {if (x!=1) print $0}' < foo > bar
>
> Wouldn't it be neater to do
>
>   nawk '/^PATTERN/ { exit } ; { print }'
>
> ?

Why, yes, it would.  'awk' works with that, as well.

What does 'nawk' do that 'awk' doesn't?  I've got both binaries on my
system, but the nawk manpage is just a link to awk(1).

--
David Fleck
[EMAIL PROTECTED]

_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to