bug-ed
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-ed] inserting a newline after a word in a line


From: Duke Normandin
Subject: [Bug-ed] inserting a newline after a word in a line
Date: Fri, 19 Mar 2010 18:34:40 -0600 (MDT)
User-agent: Alpine 2.01 (OSX 1266 2009-07-14)

Hey...

Although I've been using *nix for some time, I've never bothered to
learn ed 'till now.

I'm practicing....

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?
-- 
duke




reply via email to

[Prev in Thread] Current Thread [Next in Thread]