Re:Emergency - new line for sed command

From: mounir.stambouli (mounir.stambouli@LAPOSTE.NET)
Date: Wed Oct 30 2002 - 03:50:23 EST


sed "s/^$/string/" file

will display 'file' with 'string' instead of blank lines

Mounir

> Sorry for the trivial question, but I am pressed for time...
>
> How do I get a new line in a sed substitution command?
>
>
> Thanks in advance,
> Jennifer
>
>

Accédez au courrier électronique de La Poste : www.laposte.net ;
3615 LAPOSTENET (0,13 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)"



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:18 EDT