From owner-freebsd-questions@FreeBSD.ORG Sun Jan 18 13:19:55 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D397116A4CE for ; Sun, 18 Jan 2004 13:19:55 -0800 (PST) Received: from sage.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8149443D2D for ; Sun, 18 Jan 2004 13:19:54 -0800 (PST) (envelope-from kline@thought.org) Received: from thought.org (root@tao [10.0.0.247]) by sage.thought.org (8.12.9/8.11.4) with ESMTP id i0ILJsGH050705; Sun, 18 Jan 2004 13:19:56 -0800 (PST) (envelope-from kline@thought.org) Received: (from kline@localhost) by thought.org (8.12.6/8.11.3) id i0ILJpJe041308; Sun, 18 Jan 2004 13:19:51 -0800 (PST) (envelope-from kline) Date: Sun, 18 Jan 2004 13:19:51 -0800 From: Gary Kline To: Lee Mx Message-ID: <20040118211951.GB41181@tao.thought.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing 17 years of service to the Unix community User-Agent: Mutt/1.5.5.1i cc: kline@thought.org cc: freebsd-questions@freebsd.org Subject: Re: stumped... . X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jan 2004 21:19:55 -0000 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