--- On Wed, 7/9/08, Bertram Scharpf <[EMAIL PROTECTED]> wrote:

> From: Bertram Scharpf <[EMAIL PROTECTED]>
> Subject: Re: A sed question
> To: "Unga" <[EMAIL PROTECTED]>, freebsd-questions@freebsd.org
> Date: Wednesday, July 9, 2008, 6:52 PM
> Hii,
> 
> Am Mittwoch, 09. Jul 2008, 00:35:32 -0700 schrieb Unga:
> > I want to translate following GNU sed lines to FreeBSD
> sed:
> > 
> > 1. sed -e '/\*address:/{n;[EMAIL PROTECTED]@replaceText
> @}'
> > 2. sed -e '/\*address:/{n;[EMAIL PROTECTED]@
> [EMAIL PROTECTED]'
> 
> An obvious problem is that a semicolon is missing before
> the closing
> brace.
> 
>     sed -e '/\*address:/{n;[EMAIL PROTECTED]@replaceText
> @;}'
> 
> I'm almost sure your version won't work with GNU
> sed either.
> 

Thank you very much for the reply.

That was indeed the difference between the GNU sed and the FreeBSD sed in this 
case. I tested with a semicolon, it worked perfectly but the GNU sed does not 
require similar semicolon.

Best regards
Unga


      
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to