Re: Either I do something wrong or there is a regexp bug in sed !!

From: Giorgos Keramidas <keramida_at_freebsd.org>
Date: Mon, 15 Nov 2004 03:41:12 +0200
On 2004-11-14 16:05, Zoltan Frombach <tssajo_at_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
$
Received on Mon Nov 15 2004 - 00:41:30 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:22 UTC