Date: Wed, 9 Jul 2008 06:49:43 -0700 (PDT) From: Unga <unga888@yahoo.com> To: Bertram Scharpf <lists@bertram-scharpf.de> Cc: freebsd-questions@freebsd.org Subject: Re: A sed question Message-ID: <472423.43997.qm@web57013.mail.re3.yahoo.com> In-Reply-To: <20080709105237.GA32361@marge.bs.l>
next in thread | previous in thread | raw e-mail | index | archive | help
--- On Wed, 7/9/08, Bertram Scharpf <lists@bertram-scharpf.de> wrote: > From: Bertram Scharpf <lists@bertram-scharpf.de> > Subject: Re: A sed question > To: "Unga" <unga888@yahoo.com>, 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;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. > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?472423.43997.qm>