Unix Shell - SED question: entering a blank line above eight character found

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > December 2007 > SED question: entering a blank line above eight character found





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author SED question: entering a blank line above eight character found
Kompu Kid

2007-12-28, 1:36 am

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
Bill Marcum

2007-12-28, 7:31 am

On 2007-12-28, Kompu Kid <deguza@hotmail.com> 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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com