stupid sed question

2002-11-07 Thread Mathew Kanner
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

Re: stupid sed question

2002-11-07 Thread Mathew Kanner
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,