Date: Wed, 09 Nov 2011 23:00:17 -0800 From: perryh@pluto.rain.com To: vince@unsane.co.uk Cc: FreeBSD-Questions@freebsd.org Subject: Re: sed vs gnu sed Message-ID: <4ebb7681.kE6yc4aqdzf2C9LV%perryh@pluto.rain.com> In-Reply-To: <4EBA5646.5030102@unsane.co.uk> References: <4EBA5646.5030102@unsane.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
Vincent Hoffman <vince@unsane.co.uk> 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'
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ebb7681.kE6yc4aqdzf2C9LV%perryh>