From owner-freebsd-questions@FreeBSD.ORG Sat Jan 17 21:06: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 BC1FB16A4CE for ; Sat, 17 Jan 2004 21:06: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 AFBD843D46 for ; Sat, 17 Jan 2004 21:06:52 -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 i0I56kGH048923; Sat, 17 Jan 2004 21:06:49 -0800 (PST) (envelope-from kline@thought.org) Received: (from kline@localhost) by thought.org (8.12.6/8.11.3) id i0I56kFu068645; Sat, 17 Jan 2004 21:06:46 -0800 (PST) (envelope-from kline) Date: Sat, 17 Jan 2004 21:06:45 -0800 From: Gary Kline To: Gautam Gopalakrishnan Message-ID: <20040118050645.GB68597@tao.thought.org> References: <20040118030911.GA18161@tao.thought.org> <20040118034842.GA80517@madras.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040118034842.GA80517@madras.dyndns.org> 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: Gary Kline cc: FreeBSD Mailing List 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 05:06:55 -0000 On Sun, Jan 18, 2004 at 02:48:42PM +1100, Gautam Gopalakrishnan wrote: > On Sat, Jan 17, 2004 at 07:09:12PM -0800, Gary Kline wrote: > > > > I've written scores of scripts to hack text files, but this > > one has me dead in the water. > > > > How can I delete all lines from /^PATTERN to EOF?? > > > > sed -e '/pattern/,$d' > Yep. Thisis what i used, in fact. thanks. gary > -- Gary Kline kline@thought.org www.thought.org Public service Unix