more regexp: sed trouble ?

Peter plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Sat Oct 8 13:39:31 UTC 2005


My sed copy seems not to want to work in multi-line mode. Any ideas ?

plp at plp$ sed --version 
GNU sed version 4.0.9
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE,
to the extent permitted by law.
plp at plp$ echo -e "a\n\n\nb"|sed -re 's/\n\n/yes/g'
a


b
plp at plp$ echo -e "a\na"|sed  -re '/.*/Ml'
a$
a
a$
a

-----

HUH ?

thanks,
Peter
--
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