From owner-freebsd-questions@FreeBSD.ORG Sun Jan 18 05:56:47 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 CCDAC16A4E4 for ; Sun, 18 Jan 2004 05:56:47 -0800 (PST) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2ADD843D48 for ; Sun, 18 Jan 2004 05:56:46 -0800 (PST) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp107-236.lns1.adl1.internode.on.net [150.101.107.236])i0IDugqR056308; Mon, 19 Jan 2004 00:26:43 +1030 (CST) Content-Type: text/plain; charset="iso-8859-1" From: Malcolm Kay Organization: At home To: Gautam Gopalakrishnan , Gary Kline Date: Mon, 19 Jan 2004 00:26:41 +1030 User-Agent: KMail/1.4.3 References: <20040118030911.GA18161@tao.thought.org> <20040118034842.GA80517@madras.dyndns.org> In-Reply-To: <20040118034842.GA80517@madras.dyndns.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200401190026.41956.malcolm.kay@internode.on.net> 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 13:56:47 -0000 On Sun, 18 Jan 2004 14:18, Gautam Gopalakrishnan wrote: > On Sat, Jan 17, 2004 at 07:09:12PM -0800, Gary Kline wrote: > > =09I've written scores of scripts to hack text files, but this > > =09one has me dead in the water. > > > > =09How can I delete all lines from /^PATTERN to EOF?? > > sed -e '/pattern/,$d' I think: sed -e '/^PATTERN/,$d' Malcolm