From owner-freebsd-questions Thu Nov 7 12:46: 0 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 B26C837B401 for ; Thu, 7 Nov 2002 12:45:59 -0800 (PST) Received: from hak.cnd.mcgill.ca (hak.cnd.mcgill.ca [132.216.11.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id B887C43E3B for ; Thu, 7 Nov 2002 12:45:57 -0800 (PST) (envelope-from mat@hak.cnd.mcgill.ca) Received: from hak.cnd.mcgill.ca (localhost.cnd.mcgill.ca [127.0.0.1]) by hak.cnd.mcgill.ca (8.12.3/8.12.3) with ESMTP id gA7KkPQr022118; Thu, 7 Nov 2002 15:46:25 -0500 (EST) (envelope-from mat@hak.cnd.mcgill.ca) Received: (from mat@localhost) by hak.cnd.mcgill.ca (8.12.3/8.12.3/Submit) id gA7KkPka022117; Thu, 7 Nov 2002 15:46:25 -0500 (EST) Date: Thu, 7 Nov 2002 15:46:25 -0500 From: Mathew Kanner To: freebsd-questions@freebsd.org Cc: Mathew Kanner Subject: stupid sed question Message-ID: <20021107154625.A92742@cnd.mcgill.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Organization: I speak for myself, operating in Montreal, CANADA 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 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