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

2004-11-14 Thread Zoltan Frombach
Thanks. I will not use the -E flag then. Zoltan Zoltan Frombach wrote: You are right. My mistake. This indeed works: sed -E -e "s/^[0-9]+/199/" conf-split > conf-split.new Thanks for clearing this up. For what it's worth, there is another way to write this regexp without using the -E flag. Since x

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

2004-11-14 Thread Maxime Henrion
Zoltan Frombach wrote: > You are right. My mistake. This indeed works: > > sed -E -e "s/^[0-9]+/199/" conf-split > conf-split.new > > Thanks for clearing this up. For what it's worth, there is another way to write this regexp without using the -E flag. Since x+ == xx*, you can write it: "s/^[0-

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

2004-11-14 Thread BjÃrn KÃnig
use -E ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"

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

2004-11-14 Thread Zoltan Frombach
You are right. My mistake. This indeed works: sed -E -e "s/^[0-9]+/199/" conf-split > conf-split.new Thanks for clearing this up. Zoltan On Sun, 2004-11-14 at 18:39, Zoltan Frombach wrote: match anything! After spending like an hour investigating this, I realized that the + after my bracket expres

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

2004-11-14 Thread Brandon S. Allbery KF8NH
On Sun, 2004-11-14 at 18:39, Zoltan Frombach wrote: > match anything! After spending like an hour investigating this, I realized > that the + after my bracket expression ( I'm talking about this part here: Normal. > According to the sed man page, the regexp syntax that is used by sed is > docu

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

2004-11-14 Thread Zoltan Frombach
I'm trying to use sed under FreeBSD 5.3-RELEASE in a new 'netqmail' port I am currently working on. I want to replace a bunch of digits (in plain English: a decimal number) in a text file at the beginning of a line. Here is how the original file looks before I do anything (this file is part of