Duke Normandin scripsit:

> Didn't work for me. ;( When I entered the "return key" for a literal
> newline, ed thought I was done, and displayed the entire "long" line
> unchanged. I never did get as far as entering the /p.

Sorry, I left out the \ escape.

s/break_here/break_here\
/p

In other words, \ followed by newline is an explicit newline, just as \& is
an explicit ampersand.  However, that will not work on the pattern side,
because ed matches each line separately.

-- 
John Cowan   http://ccil.org/~cowan    co...@ccil.org
In might the Feanorians / that swore the unforgotten oath
brought war into Arvernien / with burning and with broken troth.
and Elwing from her fastness dim / then cast her in the waters wide,
but like a mew was swiftly borne, / uplifted o'er the roaring tide.
        --the Earendillinwe


_______________________________________________
bug-ed mailing list
bug-ed@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-ed

Reply via email to