Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jan 2004 21:06:45 -0800
From:      Gary Kline <kline@thought.org>
To:        Gautam Gopalakrishnan <ggop@madras.dyndns.org>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: stumped... .
Message-ID:  <20040118050645.GB68597@tao.thought.org>
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, 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



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