From owner-freebsd-questions@FreeBSD.ORG Wed Aug 2 23:59:05 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 13F2916A4E0 for ; Wed, 2 Aug 2006 23:59:05 +0000 (UTC) (envelope-from bill@celestial.com) Received: from mail.mi.celestial.com (hayek.celestial.com [192.136.111.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C55443D46 for ; Wed, 2 Aug 2006 23:59:04 +0000 (GMT) (envelope-from bill@celestial.com) Received: from localhost (localhost [127.0.0.1]) by mail.mi.celestial.com (Postfix) with ESMTP id 13AC612A777; Wed, 2 Aug 2006 16:59:04 -0700 (PDT) Received: from mail.mi.celestial.com ([127.0.0.1]) by localhost (alexis.mi.celestial.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 82858-02-2; Wed, 2 Aug 2006 16:59:03 -0700 (PDT) Received: by mail.mi.celestial.com (Postfix, from userid 203) id 7303C12A749; Wed, 2 Aug 2006 16:59:03 -0700 (PDT) Date: Wed, 2 Aug 2006 16:59:03 -0700 From: Bill Campbell To: FreeBSD Mailing List Message-ID: <20060802235903.GA84728@alexis.mi.celestial.com> Mail-Followup-To: FreeBSD Mailing List References: <20060802230830.GA20799@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060802230830.GA20799@thought.org> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: amavisd-new at mi.celestial.com Cc: Subject: Re: qauestion using ed. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@celestial.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Aug 2006 23:59:05 -0000 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 -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 ``Perhaps, when committing your first federal crime, it would be unwise to slap your name and address on it and mail it to 10,000 people.'' --Dogbert