Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jul 2008 12:52:37 +0200
From:      Bertram Scharpf <lists@bertram-scharpf.de>
To:        Unga <unga888@yahoo.com>, freebsd-questions@freebsd.org
Subject:   Re: A sed question
Message-ID:  <20080709105237.GA32361@marge.bs.l>
In-Reply-To: <743969.9333.qm@web57003.mail.re3.yahoo.com>
References:  <743969.9333.qm@web57003.mail.re3.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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;s@.*@replaceText @}'
> 2. sed -e '/\*address:/{n;s@$@ replaceText@}'

An obvious problem is that a semicolon is missing before the closing
brace.

    sed -e '/\*address:/{n;s@.*@replaceText @;}'

I'm almost sure your version won't work with GNU sed either.

Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080709105237.GA32361>