From owner-freebsd-questions@FreeBSD.ORG Wed Jul 9 10:52:40 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC90E1065673 for ; Wed, 9 Jul 2008 10:52:40 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by mx1.freebsd.org (Postfix) with ESMTP id 52FF78FC13 for ; Wed, 9 Jul 2008 10:52:40 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from marge.bs.l (e180031211.adsl.alicedsl.de [85.180.31.211]) by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis) id 0ML2xA-1KGXHq0LP8-0003Rk; Wed, 09 Jul 2008 12:52:38 +0200 Received: from bsch by marge.bs.l with local (Exim 4.69) (envelope-from ) id 1KGXHp-0008SB-Ig; Wed, 09 Jul 2008 12:52:37 +0200 Date: Wed, 9 Jul 2008 12:52:37 +0200 From: Bertram Scharpf To: Unga , freebsd-questions@freebsd.org Message-ID: <20080709105237.GA32361@marge.bs.l> Mail-Followup-To: Unga , freebsd-questions@freebsd.org References: <743969.9333.qm@web57003.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <743969.9333.qm@web57003.mail.re3.yahoo.com> User-Agent: Mutt/1.5.16 (2007-06-09) Sender: Bertram Scharpf X-Provags-ID: V01U2FsdGVkX1/AGlX6qgG21y1+bjNTE0i6oU35eJqxv9DaT1M 0I9GIET5T+9BWhjbwH/NCmvSYZAiBzpVRPr7Wv4yczL0tZBnsA 8mD0BorRuVCrcnu2czslfiTaRQlJWVNUGuAP0ZH41U= Cc: Subject: Re: A sed question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2008 10:52:40 -0000 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