Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jan 2004 18:35:52 -0800
From:      Chris Pressey <cpressey@catseye.mine.nu>
To:        questions@freebsd.org
Subject:   Re: General UNIX puzzle
Message-ID:  <20040117183552.4cec1748.cpressey@catseye.mine.nu>
In-Reply-To: <6.0.0.22.2.20040117144800.050c2b28@localhost>
References:  <6.0.0.22.2.20040116192550.05046df8@localhost> <4009ACAD.7020302@binprod.com> <6.0.0.22.2.20040117144800.050c2b28@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 17 Jan 2004 14:50:18 -0700
Brett Glass <brett@lariat.org> wrote:

> For example, while I received answers involving languages, such as
> sed and awk, the simplest answer to at least one of them seems to use
> grep.

How so?  My first thought for #3 was 'fgrep -v string', but on
re-reading the problem, I realized that wouldn't quite cut it.
Unless grep has a 'change behaviour after first match' type switch that
I've somehow failed to see in its man page...

-Chris



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