sed replacement

Jeff Kinz jkinz at kinz.org
Mon May 16 09:48:32 EDT 2005


On Mon, May 16, 2005 at 09:43:56AM -0400, Jeff Kinz wrote:
> On Mon, May 16, 2005 at 09:31:33AM -0400, Robert La Ferla wrote:
> > BTW - That should have been:
> > 
> > cat myfile | sed -e "s/text/\n\ntext/"
> > 
> > but it still doesn't work...
> 
> echo "^M^M" > mynufile ; cat myfile >> mynufile 
> 
> 
> simple, but it works.

This is only for prepending newlines at the beginning of the file.
My first read of Rob's question that that was his intent.

-- 
Jeff Kinz, Emergent Research, Hudson, MA.



More information about the Discuss mailing list