From owner-freebsd-questions@FreeBSD.ORG Wed Jul 9 07:35:33 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 EC31E1065675 for ; Wed, 9 Jul 2008 07:35:33 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from web57003.mail.re3.yahoo.com (web57003.mail.re3.yahoo.com [66.196.97.107]) by mx1.freebsd.org (Postfix) with SMTP id 893478FC23 for ; Wed, 9 Jul 2008 07:35:33 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: (qmail 10269 invoked by uid 60001); 9 Jul 2008 07:35:32 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=yM+bySwwQdwwTyxddkgreJG+/+2YNIMO9NZUIiEuNmFojE/MlaHtEzi4WShwUYB/Cjz/kfrSDz22wkt2Ywb9oJSc16e8LBvilyEB2O/EpXIyVlbK1A8ZnZO3tZ5EtXXpaV1ObTdRgReH6repQtbG/8KVcTV5CSNgxREdVi2eHL8=; Received: from [165.21.155.112] by web57003.mail.re3.yahoo.com via HTTP; Wed, 09 Jul 2008 00:35:32 PDT X-Mailer: YahooMailWebService/0.7.199 Date: Wed, 9 Jul 2008 00:35:32 -0700 (PDT) From: Unga To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <743969.9333.qm@web57003.mail.re3.yahoo.com> Subject: A sed question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: unga888@yahoo.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2008 07:35:34 -0000 Hi all 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@}' Appreciate if someone could help with it. Is there a good documentation about FreeBSD sed other than man page? Kind regards Unga