SED question: entering a blank line above eight character found

SED question: entering a blank line above eight character found

am 28.12.2007 07:58:25 von Kompu Kid

Hello All:

After finding a ":", I would like to enter a blank line above the line
that the colon is found.

How do I do this with SED?

Deguza

Re: SED question: entering a blank line above eight character found

am 28.12.2007 08:48:51 von Bill Marcum

On 2007-12-28, Kompu Kid wrote:
>
>
> Hello All:
>
> After finding a ":", I would like to enter a blank line above the line
> that the colon is found.
>
> How do I do this with SED?
>
sed '/:/i\
'

> Deguza