From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Ray Newsgroups: gmane.emacs.help Subject: Re: Removing control M Date: Fri, 28 Feb 2014 21:44:25 +0000 Message-ID: <53110339.60007@raspberryvi.org> References: <1393618592227-315636.post@n5.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1393625835 29776 80.91.229.3 (28 Feb 2014 22:17:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Feb 2014 22:17:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 28 23:17:24 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WJVkC-0007Xp-AT for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Feb 2014 23:17:24 +0100 Original-Received: from localhost ([::1]:53454 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJVkB-00022k-RZ for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Feb 2014 17:17:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJVjs-00022J-Ax for help-gnu-emacs@gnu.org; Fri, 28 Feb 2014 17:17:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WJVjm-0000Sv-2F for help-gnu-emacs@gnu.org; Fri, 28 Feb 2014 17:17:04 -0500 Original-Received: from smtpout13.bt.lon5.cpcloud.co.uk ([65.20.0.133]:20369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJVjl-0000Ov-QA for help-gnu-emacs@gnu.org; Fri, 28 Feb 2014 17:16:57 -0500 X-CTCH-RefID: str=0001.0A090205.53110337.0059, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-Junkmail-Premium-Raw: score=7/97, refid=2.7.2:2014.2.28.171515:17:7.944, ip=, rules=__MOZILLA_MSGID, __HAS_MSGID, __SANE_MSGID, __FW_1LN_BOT_MSGID, __HAS_FROM, __USER_AGENT, __MOZILLA_USER_AGENT, __MIME_VERSION, __TO_MALFORMED_2, __TO_NO_NAME, __BOUNCE_CHALLENGE_SUBJ, __BOUNCE_NDR_SUBJ_EXEMPT, __IN_REP_TO, __CT, __CT_TEXT_PLAIN, __CTE, __ANY_URI, __FRAUD_BODY_WEBMAIL, __CP_URI_IN_BODY, __OEM_SOFTWARE_1, __SUBJ_ALPHA_NEGATE, __FORWARDED_MSG, BODY_SIZE_1100_1199, BODYTEXTP_SIZE_3000_LESS, __MIME_TEXT_ONLY, __URI_NS, HTML_00_01, HTML_00_10, BODY_SIZE_5000_LESS, BODY_SIZE_2000_LESS, OEM_SOFTWARE_X1, __FRAUD_WEBMAIL, BODY_SIZE_7000_LESS X-CTCH-Spam: Unknown Original-Received: from [192.168.1.80] (86.140.31.239) by smtpout13.bt.lon5.cpcloud.co.uk (8.6.100.99.10223) (authenticated as mike.ray@btinternet.com) id 530F761100173AE0 for help-gnu-emacs@gnu.org; Fri, 28 Feb 2014 21:44:23 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] [fuzzy] X-Received-From: 65.20.0.133 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96231 Archived-At: On 28/02/2014 21:25, Dan Espen wrote: >>>>>> "Jai" == Jai Dayal writes: > Jai> dos2unix is not an emacs command, but a shell command. > Jai> On Fri, Feb 28, 2014 at 3:16 PM, peaches20 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 Analyst/Programmer 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? Visit: http://www.raspberryvi.org/ From where you can join our mailing list for visually-impaired Pi hackers