Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sed replacement



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.




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org