Suppose I have opened a text file in ed, and the current line looks like this:
This is sentence one. Here starts another one.
Now I want to put a newline after one.
, such that the new sentence starting with Here starts
occupies the next line.
How do I do this in ed?
.s/\./\.\n/
but it appears that \n yields n. – Dominic van der Zypen Aug 13 '17 at 12:58