sed replacement

Robert La Ferla robertlaferla at comcast.net
Mon May 16 09:26:23 EDT 2005


I am trying to replace some text with the same text pre-pended with 
some new lines.  I thought this would be simple and tried the obvious 
but it doesn't seem to work:

cat myfile | sed -e "s/text/\n\ntext"

Any ideas on how to do it?




More information about the Discuss mailing list