LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] sed is annoying me muchly

[ILUG] sed is annoying me muchly

John Moylan john at rte.ie
Thu Oct 31 16:02:08 GMT 2002


Have you tried the new sed release. I believe they fixed some of the 
regex problems.

John

Stephen Shirley wrote:

>Hey,
>	Quick sed question: Why in the blue blazes is this:
>
>	 echo 'hello }}' | sed 's/\([^}]*\)}/\1/'
>
>printing out this:
>
>	 'hello }'
>
>instead of this:
>
>	 'hello '
>
>? It's driving me nuts.
>
>	sed 's/\([^}]*\)//'
>
>gives
>
>	'}}'
>
>leaving me _very_ confused. I reckon it's a bug in sed, cause
>
>	sed 's/\([^}]*\).*/\1/'
>
>_does_ work. Hmph.
>
>Steve
>  
>




******************************************************************************
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee.  Access to this e-mail by anyone else
is unauthorised.  If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful.
Please note that emails to, from and within RTE may be subject to the Freedom
of Information Act 1997 and may be liable to disclosure.
******************************************************************************



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell