Re: replacing ^M in the editor


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

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.

Pavel Roskin

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