regexp matching question

Walter Dnes waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org
Wed Oct 12 21:39:53 UTC 2005


On Sun, Oct 09, 2005 at 01:10:35AM +0200, Peter wrote
> 
> 
> >>You are not going to like this but I made progess with my customized
> >>formail replacement:
> >
> > What's not to like?  I agree that formail runs into trouble
> >occasionally, and a more specialized tool can do a better job in a
> >specific area.
> 
> We agree then. Could you please tell if the sed example works in your 
> sed version ?
> 
> echo -e "a\na"|sed -e '/\n/M s/.\+/yes/g'
> 
> fails here. Thanks,

[m3000][waltdnes][~] echo -e "a\na"|sed -e '/\n/M s/.\+/yes/g'
a
a

[m3000][waltdnes][~] bash --version
GNU bash, version 3.00.16(1)-release (i686-pc-linux-gnu)
Copyright (C) 2004 Free Software Foundation, Inc.

  Running on an AMD64.  Gentoo linux with...
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=athlon -m3dnow -mmmx -msse -msse2 -mfpmath=sse"


-- 
Walter Dnes <waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org>
An infinite number of monkeys pounding away on keyboards will
eventually produce a report showing that Windows is more secure,
and has a lower TCO, than linux.
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list