[Top][All Lists]

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

Re: Removing control M

From: Mike Ray
Subject: Re: Removing control M
Date: Fri, 28 Feb 2014 21:44:25 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

On 28/02/2014 21:25, Dan Espen wrote:
"Jai" == Jai Dayal <address@hidden> writes:
     Jai> dos2unix is not an emacs command, but a shell command.
     Jai> On Fri, Feb 28, 2014 at 3:16 PM, peaches20 <address@hidden> wrote:

     >> Hi,
     >> I've transferred several dos files to unix.  I now have the
     >> control M at tne end of the line.  How does one remove this
     >> globally.  I tried the dos2unis but that is not in my emacs
     >> commands.

To remove the control M's, just use Emacs normal find replace.
To type a ^M. type ^Q first.

A normally operating ftp program would have converted line endings
automatically assuming you used ascii mode (not binary).

Or do thusly:

sed -i 's:\r::' input_file

Michael A. Ray
Witley, Surrey, South-east UK

The box said: 'install Windows XP, 7 or better'. So I installed Linux

Interested in accessibility on the Raspberry Pi?

From where you can join our mailing list for visually-impaired Pi hackers

reply via email to

[Prev in Thread] Current Thread [Next in Thread]