Date: Thu, 7 Nov 2002 22:13:24 +0100 From: Miguel Mendez <flynn@energyhq.homeip.net> To: Mathew Kanner <mat@cnd.mcgill.ca> Cc: freebsd-questions@freebsd.org, mat@cnd.mcgill.ca Subject: Re: stupid sed question Message-ID: <20021107221324.6d9f92bd.flynn@energyhq.homeip.net> In-Reply-To: <20021107154625.A92742@cnd.mcgill.ca> References: <20021107154625.A92742@cnd.mcgill.ca>
index | next in thread | previous in thread | raw e-mail
On Thu, 7 Nov 2002 15:46:25 -0500
Mathew Kanner <mat@cnd.mcgill.ca> wrote:
Hi,
> I've been going nuts trying to figure out how to embed a
> newline in sed, and the man page just doesn't mean anything to me.
>
> What I would like is
> echo abc | sed -e's,b,\n' to get
> a
> c
How about echo abc | tr 'b' '\n' ?
Cheers,
--
Miguel Mendez - flynn@energyhq.homeip.net
GPG Public Key :: http://energyhq.homeip.net/files/pubkey.txt
EnergyHQ :: http://www.energyhq.tk
NetBSD :: Unix without hype
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021107221324.6d9f92bd.flynn>
