Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Nov 2002 16:39:13 -0500
From:      Mathew Kanner <mat@cnd.mcgill.ca>
To:        "Paul A. Scott" <pscott@skycoast.us>
Cc:        Miguel Mendez <flynn@energyhq.homeip.net>, Mathew Kanner <mat@cnd.mcgill.ca>, freebsd-questions@freebsd.org
Subject:   Re: stupid sed question
Message-ID:  <20021107163913.B92742@cnd.mcgill.ca>
In-Reply-To: Paul A. Scott's message [Re: stupid sed question] as of Thu, Nov 07, 2002 at 01:23:13PM -0800
References:  <20021107221324.6d9f92bd.flynn@energyhq.homeip.net> <B9F019C1.F3A9%pscott@skycoast.us>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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