[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: |
Karl Berry |
Subject: |
Re: [Bug-ed] inserting a newline after a word in a line |
Date: |
Sat, 20 Mar 2010 23:09:03 GMT |
s/break_here/break_here\n/p
but the "\n" doesn't work in ed. Is there a way to do this?
Escape a literal newline with \.
s/break_here/break_here\
/p
See the description of the "s" command in the manual.
However, I think what I would actually do in your situation is run fmt
on the text :).
All the best,
Karl