Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jan 2004 13:19:51 -0800
From:      Gary Kline <kline@thought.org>
To:        Lee Mx <lee_ver_mx@hotmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: stumped... .
Message-ID:  <20040118211951.GB41181@tao.thought.org>
In-Reply-To: <BAY8-F19VjBUKv1pKcq000206e6@hotmail.com>
References:  <BAY8-F19VjBUKv1pKcq000206e6@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jan 18, 2004 at 04:19:04AM -0800, Lee Mx wrote:
> 
> >> > On Sat, 17 Jan 2004, Gary Kline wrote:
> >> >
> >> > >
> >> Wouldn't it be neater to do
> >>
> >>   nawk '/^PATTERN/ { exit } ; { print }'
> 
> Couldn't sed '/^PATTERN/,$d' < foo > bar be a bit faster?
> 

	This is what I scripted in /bin/sh with my 79 files.

	:-X

	gary

-- 
   Gary Kline     kline@thought.org   www.thought.org     Public service Unix



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