Date: Mon, 19 Jan 2004 00:26:41 +1030 From: Malcolm Kay <malcolm.kay@internode.on.net> To: Gautam Gopalakrishnan <ggop@madras.dyndns.org>, Gary Kline <kline@thought.org> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: stumped... . Message-ID: <200401190026.41956.malcolm.kay@internode.on.net> In-Reply-To: <20040118034842.GA80517@madras.dyndns.org> References: <20040118030911.GA18161@tao.thought.org> <20040118034842.GA80517@madras.dyndns.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401190026.41956.malcolm.kay>