Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Nov 2002 23:26:13 +0100
From:      philipp <philipp@void.at>
To:        Mathew Kanner <mat@cnd.mcgill.ca>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: stupid sed question
Message-ID:  <20021107232613.B1662@phrost.net>
In-Reply-To: <20021107154625.A92742@cnd.mcgill.ca>; from mat@cnd.mcgill.ca on Do, Nov 07, 2002 at 03:46:25pm -0500
References:  <20021107154625.A92742@cnd.mcgill.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
http://www.faqs.org/faqs/editor-faq/sed/
section 4.6

on Do, Nov 07, 2002 at 03:46:25pm -0500, Mathew Kanner wrote:
> Hello,
> 	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
> 
> 	Of course, the above doesn't work and I'm looking for an
> alternative.  This is freebsd's sed so I don't need a general
> solution.
> 
> 	Thanks,
> 	--Mat
> 
> -- 
> The Brain: We're going to a place where the sun never sets, the size
> of your wallet matters, and actors and actresses slave all day!
> Pinky: We're going to Denny's?
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

--
regards

philipp <philipp@void.at>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021107232613.B1662>