Operating System - HP-UX
1837399 Members
3418 Online
110116 Solutions
New Discussion

replacing /n with newline with ed.

 
Jonathan Corbeill
Occasional Advisor

replacing /n with newline with ed.

 
2 REPLIES 2
Bill Hassell
Honored Contributor

Re: replacing /n with newline with ed.

Not sure what you are asking. Do you want to remove all newline marks, ie, run the text together? If so, here is an easier way than using ed (or sed or awk, etc):

echo $(
(or easier to understand but makes unnecessary use of cat): echo $(cat file_name)


Bill Hassell, sysadmin
Jonathan Corbeill
Occasional Advisor

Re: replacing /n with newline with ed.

Please see later message for detail.