[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-ed] inserting a newline after a word in a line
From: |
John Cowan |
Subject: |
Re: [Bug-ed] inserting a newline after a word in a line |
Date: |
Fri, 19 Mar 2010 22:05:39 -0400 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Duke Normandin scripsit:
> I entered a bunch of text, but failed to realize that I needed to
> entered a newline in order to produce a newline. So what I have now,
> is one huge line. I want to break it up into various lines. I'm aware
> of the substitution command, like:
>
> s/break_here/break_here\n/p
>
> but the "\n" doesn't work in ed. Is there a way to do this?
Use a literal newline, like this:
s/break_here/break_here
/p
--
Go, and never darken my towels again! John Cowan
--Rufus T. Firefly http://ccil.org/~cowan