From owner-freebsd-questions@FreeBSD.ORG Thu Nov 10 18:59:23 2011 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 13898106564A for ; Thu, 10 Nov 2011 18:59:23 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id C736B8FC08 for ; Thu, 10 Nov 2011 18:59:22 +0000 (UTC) Received: by yenl2 with SMTP id l2so1850625yen.13 for ; Thu, 10 Nov 2011 10:59:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Dmy8kFaLiFmjx3zoVb8FZUsyrkmxeI5H5PUMmbMs+p4=; b=CgNm38zYlg0E7jIly0Hn2D6T22JGzaXOHbQt07vhTxXoQP3LQOnYyBjTdBlAOjx7Ih +iD4F5U0qrWuaTEOzNj6pAeb7hw54n2oezUgCOdGXenqar0IuFI9Ct1dZVkGr/SXZGcJ cKGkjZxcxO8qMdn5C1xtzDoHnkjZqEQdfEODg= MIME-Version: 1.0 Received: by 10.101.111.11 with SMTP id o11mr3983181anm.139.1320951561874; Thu, 10 Nov 2011 10:59:21 -0800 (PST) Received: by 10.236.102.164 with HTTP; Thu, 10 Nov 2011 10:59:21 -0800 (PST) In-Reply-To: <4EBBA868.5030000@unsane.co.uk> References: <4EBA5646.5030102@unsane.co.uk> <4ebb7681.kE6yc4aqdzf2C9LV%perryh@pluto.rain.com> <4EBBA868.5030000@unsane.co.uk> Date: Thu, 10 Nov 2011 18:59:21 +0000 Message-ID: From: krad To: Vincent Hoffman Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: sed vs gnu sed 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: Thu, 10 Nov 2011 18:59:23 -0000 On 10 November 2011 10:33, Vincent Hoffman wrote: > On 10/11/2011 07:00, perryh@pluto.rain.com wrote: > >> Vincent Hoffman wrote: >> >> bsd sed (correctly according to SUS at least, I believe[1]) >>> appends a newline when writing to standard out, gnu sed doesnt. >>> >> The wonderful thing about standards is that there are so many to >> choose from -- Tanenbaum >> >> is there any easy way to make our sed do the same as gnu sed here? >>> >> As long as it is OK to remove _all_ newlines -- which seems to be >> the case here -- you could pipe the output through tr -d '\012' >> > > > Thanks to all for suggestions, I'll move to using tr at some point i think > but the overhead of any of the approaches is pretty negligable (except for > firing up python/perl ;) > > Vince > > > ______________________________**_________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/**mailman/listinfo/freebsd-**questions >> To unsubscribe, send any mail to "freebsd-questions-** >> unsubscribe@freebsd.org " >> > > ______________________________**_________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/**mailman/listinfo/freebsd-**questions > To unsubscribe, send any mail to "freebsd-questions-** > unsubscribe@freebsd.org " > you could sidestep the issue entirely /usr/ports/textproc/gsed