From owner-freebsd-questions Thu Nov 7 13:26:14 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F29B37B404 for ; Thu, 7 Nov 2002 13:26:12 -0800 (PST) Received: from phrost.net (phrost.net [194.208.119.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F55643E4A for ; Thu, 7 Nov 2002 13:26:12 -0800 (PST) (envelope-from philipp@phrost.net) Received: from localhost ([::1] helo=zordid.lan) by phrost.net with esmtp (Exim 3.36 #1) id 189v6M-0000Uw-00; Thu, 07 Nov 2002 23:26:14 +0100 Received: (from philipp@localhost) by zordid.lan (8.12.3/8.12.3/Submit) id gA7MQDHT001917; Thu, 7 Nov 2002 23:26:13 +0100 (CET) Date: Thu, 7 Nov 2002 23:26:13 +0100 From: philipp To: Mathew Kanner Cc: freebsd-questions@freebsd.org Subject: Re: stupid sed question Message-ID: <20021107232613.B1662@phrost.net> References: <20021107154625.A92742@cnd.mcgill.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021107154625.A92742@cnd.mcgill.ca>; from mat@cnd.mcgill.ca on Do, Nov 07, 2002 at 03:46:25pm -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message