Re: replacing ^M in the editor



Hello!

On Fri, 21 Feb 2003, hugo vanwoerkom wrote:

Pavel Roskin <proski gnu org>
Re: replacing ^M in the editor

Pavel: Guess what! dos2unix command does it
faultlessly!

Strictly speaking, you asked to replace ^M (presumably with some other
text), not to remove it.  Also, you didn't say that you are dealing with
DOS text, where ^M always precedes the newline.

It's easy to emulate functionality of dos2unix in mcedit.  Select F4
(Replace).  Then enter:

Enter search string:
. Ctrl-q Enter

Enter replacement string:
Ctrl-q Enter

Select "Regular expression".  Press OK.  That's it.

-- 
Regards,
Pavel Roskin



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