Date: Mon, 21 Jul 2008 16:01:07 -0700 From: Gary Kline <kline@thought.org> To: FreeBSD-Questions@freebsd.org Subject: Re: another beginner-type question. Message-ID: <20080721230106.GA16001@thought.org> In-Reply-To: <20080721200945.GA2692@Grumpy.DynDNS.org> References: <20080721195125.GA7725@thought.org> <20080721200945.GA2692@Grumpy.DynDNS.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 21, 2008 at 03:09:46PM -0500, David Kelly wrote: > On Mon, Jul 21, 2008 at 12:51:28PM -0700, Gary Kline wrote: > > > > i could do this kwik and dirty, and type in/fix any anomalies later, but > > it would be nice to know. > > > > I've already tried > > > > 1, /<CENTER> d > > > > and a other such. zip. > > % sed -e "1,/<CENTER>/d" < junk.in > junk.out > im taking this off-list so i dont show any further ignorance.... but i've tried everything SED i can think of without direct success [1], but want to know *how* to delete from </CENTER> to EOF. sometimes sed spat out stderr messages, usually failed by printing the file to stdout. so when you have time, can you please show me? gary [1]. Indirectly, i used -e '/<\/CENTER>/d' (&c) to get rid of thee last 3 lines. Beats vi'ing 70+ times! -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080721230106.GA16001>