From owner-freebsd-current@FreeBSD.ORG Mon Nov 15 01:41:30 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 50C6416A4CE for ; Mon, 15 Nov 2004 01:41:30 +0000 (GMT) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7166F43D2D for ; Mon, 15 Nov 2004 01:41:29 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from gothmog.gr (patr530-b157.otenet.gr [212.205.244.165]) iAF1fQp4008127; Mon, 15 Nov 2004 03:41:27 +0200 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.1/8.13.1) with ESMTP id iAF1fDeZ002826; Mon, 15 Nov 2004 03:41:13 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from giorgos@localhost) by gothmog.gr (8.13.1/8.13.1/Submit) id iAF1fCO6002825; Mon, 15 Nov 2004 03:41:12 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Mon, 15 Nov 2004 03:41:12 +0200 From: Giorgos Keramidas To: Zoltan Frombach Message-ID: <20041115014112.GB2694@gothmog.gr> References: <1100476106.10768.4.camel@rushlight.kf8nh.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: cc: freebsd-current@freebsd.org Subject: Re: Either I do something wrong or there is a regexp bug in sed !! X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Nov 2004 01:41:30 -0000 On 2004-11-14 16:05, Zoltan Frombach wrote: > You are right. My mistake. This indeed works: > > sed -E -e "s/^[0-9]+/199/" conf-split > conf-split.new FYI, the -e option is not necessary when -E is present: $ echo '123foo' | sed -E 's/^[0-9]+//' foo $