Who knows teco?

From: Paul Koning <pkoning_at_equallogic.com>
Date: Sun Oct 17 18:52:50 2004

> On Oct 17, 2004, at 2:48 PM, Paul Koning wrote:
>
>>>>>>> "Ron" == Ron Hudson <ron.hudson_at_sbcglobal.net> writes:
>>
>> Ron> How do I search and replace ^j for ^m^J across the entire file?
>>
>> You mean change \r\n to \n? I can't figure out if you want that or
>> the other way around.
>>
>> Assuming RSTS, where entering CR gives you \r\n and entering LF gives
>> you just \n:
>>
>> FN<cr><esc><lf><esc>EX<esc><esc>
>>
>> paul
>>
>>
>
> Actually I have linefeeds not carriage return/linefeeds btw which
> should be first?

It's FN<search>$<replacement>$ So lf to crlf is the reverse of what I
wrote.

> Linux (unix) {ohh noo don't look Fred} uses only linefeeds...
>
> EX$$ ? I thought that's what I typed to exit teco... oh wait I get it
>
> FN^j$<cr>$ <--- change all vs FS change next
> EX$ <---- exit after changes
> $ <--- ok doit already.
>
> right?

  Right.

        paul
Received on Sun Oct 17 2004 - 18:52:50 BST

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:37:22 BST