A sed question

Bertram Scharpf lists at bertram-scharpf.de
Wed Jul 9 10:52:40 UTC 2008


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 at .*@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 at .*@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


More information about the freebsd-questions mailing list