Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Nov 2004 03:41:12 +0200
From:      Giorgos Keramidas <keramida@freebsd.org>
To:        Zoltan Frombach <tssajo@hotmail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Either I do something wrong or there is a regexp bug in sed !!
Message-ID:  <20041115014112.GB2694@gothmog.gr>
In-Reply-To: <BAY2-DAV8cm9t0CI76r0001ef19@hotmail.com>
References:  <BAY2-DAV16kTgbLYluL0001ec55@hotmail.com> <1100476106.10768.4.camel@rushlight.kf8nh.com> <BAY2-DAV8cm9t0CI76r0001ef19@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2004-11-14 16:05, Zoltan Frombach <tssajo@hotmail.com> 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
$



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041115014112.GB2694>