From owner-freebsd-questions@FreeBSD.ORG Thu Aug 3 00:28:03 2006 Return-Path: X-Original-To: freebsd-questions@FreeBSD.ORG 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 6E21016A4E1 for ; Thu, 3 Aug 2006 00:28:03 +0000 (UTC) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5F0343D4C for ; Thu, 3 Aug 2006 00:28:02 +0000 (GMT) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (localhost [127.0.0.1]) by tao.thought.org (8.13.4/8.13.1) with ESMTP id k730Rsro021699 for ; Wed, 2 Aug 2006 17:28:01 -0700 (PDT) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.13.4/8.13.1/Submit) id k730RstQ021698 for freebsd-questions@FreeBSD.ORG; Wed, 2 Aug 2006 17:27:54 -0700 (PDT) (envelope-from kline) Date: Wed, 2 Aug 2006 17:27:53 -0700 From: Gary Kline To: FreeBSD Mailing List Message-ID: <20060803002753.GA21663@thought.org> References: <20060802230830.GA20799@thought.org> <20060802235903.GA84728@alexis.mi.celestial.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060802235903.GA84728@alexis.mi.celestial.com> User-Agent: Mutt/1.4.2.2i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing twenty years of service to the Unix community Cc: Subject: Re: qauestion using ed. 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: Thu, 03 Aug 2006 00:28:03 -0000 On Wed, Aug 02, 2006 at 04:59:03PM -0700, Bill Campbell wrote: > On Wed, Aug 02, 2006, Gary Kline wrote: > > > > Guys, > > > > How, pray tel, do I use ed to delete 23 lines? I can find "foo" > > with /foo, but then .,20d or .,+20d or .,+20 d don't work. > > .,.+20d > > +20d > > If you use the ``ex'' invocation of vi(m), ``20dd'' should do it. > > Bill Thankee! This works for most /patterns, but "