From owner-freebsd-questions Thu Nov 7 13:38:53 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 521DD37B406 for ; Thu, 7 Nov 2002 13:38:52 -0800 (PST) Received: from hak.cnd.mcgill.ca (hak.cnd.mcgill.ca [132.216.11.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id C012D43E75 for ; Thu, 7 Nov 2002 13:38:48 -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 gA7LdDQr022407; Thu, 7 Nov 2002 16:39:13 -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 gA7LdDRE022406; Thu, 7 Nov 2002 16:39:13 -0500 (EST) Date: Thu, 7 Nov 2002 16:39:13 -0500 From: Mathew Kanner To: "Paul A. Scott" Cc: Miguel Mendez , Mathew Kanner , freebsd-questions@freebsd.org Subject: Re: stupid sed question Message-ID: <20021107163913.B92742@cnd.mcgill.ca> References: <20021107221324.6d9f92bd.flynn@energyhq.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: Paul A. Scott's message [Re: stupid sed question] as of Thu, Nov 07, 2002 at 01:23:13PM -0800 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 On Nov 07, Paul A. Scott wrote: > > How about echo abc | tr 'b' '\n' ? > > tr substitutes characters only, while sed can work on arbitrary strings and > patterns. My guess is that the example was a simplified expression of a more > general requirement, in which case sed is appropriate and therefore, Yes, exactly. Thanks for the help! --Mat -- Brain: Are you pondering what I'm pondering? Pinky: I think so, Brain, but if the plural of mouse is mice, wouldn't the plural of spouse be spice? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message