Hi John,

> In lieu of escaped newlines and awkward sed(1) formatting, you can use
> the following line to insert an empty line:
>
> /^Before$/ { N; s/\n/&&/; }

With the caveat that the line read by N won't be processed as it would
have been otherwise.  These two show the difference which might not
matter in some cases.

    seq 10 29 | sed $'/5$/i\\\n\n/^2/s//x/'
    seq 10 29 | sed $'/5$/{N;s/\\n/&&/}\n/^2/s//x/'

-- 
Cheers, Ralph.

Reply via email to