From owner-freebsd-questions@FreeBSD.ORG Mon Oct 22 22:42:00 2007 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 0C79616A418 for ; Mon, 22 Oct 2007 22:42:00 +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 8C2BC13C4B8 for ; Mon, 22 Oct 2007 22:41:59 +0000 (UTC) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (localhost [127.0.0.1]) by tao.thought.org (8.13.8/8.13.1) with ESMTP id l9MMfePu007815 for ; Mon, 22 Oct 2007 15:41:40 -0700 (PDT) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.13.8/8.13.1/Submit) id l9MMfevx007814 for freebsd-questions@FreeBSD.ORG; Mon, 22 Oct 2007 15:41:40 -0700 (PDT) (envelope-from kline) Date: Mon, 22 Oct 2007 15:41:40 -0700 From: Gary Kline To: FreeBSD Mailing List Message-ID: <20071022224140.GA7786@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 21 of service to the Unix community. Cc: Subject: help in deletion part of a line 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, 22 Oct 2007 22:42:00 -0000 Is there an easier way by sed or ed to remove strings (caight by grep) of the sort: part5.chapter2.text- where "5" and "2" can be any integer below 10? (I know how to delete the *entire* line using ed, but not just the first part? thanks, gary -- Gary Kline kline@thought.org www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org