Who knows teco?

Paul Koning pkoning at equallogic.com
Sun Oct 17 18:52:50 CDT 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




More information about the cctalk mailing list