From owner-freebsd-questions@FreeBSD.ORG Mon Jul 21 23:01:08 2008 Return-Path: Delivered-To: FreeBSD-Questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 59AFB106566B for ; Mon, 21 Jul 2008 23:01:08 +0000 (UTC) (envelope-from kline@thought.org) Received: from aristotle.thought.org (ns1.thought.org [209.180.213.210]) by mx1.freebsd.org (Postfix) with ESMTP id 0DA088FC1D for ; Mon, 21 Jul 2008 23:01:07 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (tao.thought.org [10.47.0.250]) (authenticated bits=0) by aristotle.thought.org (8.14.2/8.14.2) with ESMTP id m6LN1GKa056705 for ; Mon, 21 Jul 2008 16:01:16 -0700 (PDT) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Mon, 21 Jul 2008 16:01:07 -0700 (PDT) Date: Mon, 21 Jul 2008 16:01:07 -0700 From: Gary Kline To: FreeBSD-Questions@freebsd.org Message-ID: <20080721230106.GA16001@thought.org> References: <20080721195125.GA7725@thought.org> <20080721200945.GA2692@Grumpy.DynDNS.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080721200945.GA2692@Grumpy.DynDNS.org> User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 21++ years of service to the Unix community. X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on aristotle.thought.org Cc: Subject: Re: another beginner-type question. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jul 2008 23:01:08 -0000 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, /
d > > > > and a other such. zip. > > % sed -e "1,/
/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
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