On Wed, 25 Dec 2002, Richard Levitte - VMS Whacker wrote:

> In message <[EMAIL PROTECTED]> on 
>Tue, 24 Dec 2002 09:23:47 -0800 (PST), Tim Rice <[EMAIL PROTECTED]> said:
> 
> tim> On Mon, 23 Dec 2002, Andy Polyakov wrote:
> tim> 
> tim> > But in either case I was actually thinking about something like this:
> tim> > 
> tim> > ... sed -e 's/ +\([\.,:@]\) +/\1/g' -e 's/#.*//' ...
> tim> 
> tim> Doesn't work here.
> tim> Ie. doesn't do what ... sed -e 's/\. /./g' -e 's/@ /@/' ... did.
> 
> It's probably because your sed is as lossy as mine, and doesn't grok
> +.  For some examples you've shown before, the following gives the
> desired result:
> 
> sed -e 's/ \?\([\.,@]\)  */\1/g' -e 's/  *:/:/g' -e 's/#.*//'

It doesn't work with the sed on UnixWare or sed on SCO OpenServer.
The 's/#.*//' rule works.
It seems to do the right thing with GNU sed.


-- 
Tim Rice                                Multitalents    (707) 887-1469
[EMAIL PROTECTED]


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to