<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Tech-Recipes - Latest Comments in Remove ^M characters at end of lines in vi</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><atom:link href="https://tech-recipes.disqus.com/remove_m_characters_at_end_of_lines_in_vi_unix_tech_recipes/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 03 Aug 2011 07:30:09 -0000</lastBuildDate><item><title>Re: Remove ^M characters at end of lines in vi</title><link>http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/#comment-275987954</link><description>&lt;p&gt;Thanks Lopezscu ,sed version of ur examplecat foo | sed 's/^M//g'the "cat foo | col -b &amp;gt; foo2" version in below posts is not working for me&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nit</dc:creator><pubDate>Wed, 03 Aug 2011 07:30:09 -0000</pubDate></item><item><title>Re: Remove ^M characters at end of lines in vi</title><link>http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/#comment-263442712</link><description>&lt;p&gt;the same for me --&amp;gt; Pattern Not Found: ^M&lt;br&gt;What is the problem here???&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ataraxic</dc:creator><pubDate>Mon, 25 Jul 2011 09:49:18 -0000</pubDate></item><item><title>Re: Remove ^M characters at end of lines in vi</title><link>http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/#comment-259715522</link><description>&lt;p&gt;It didn't worked. I got an error as Pattern Not Found: ^M&lt;/p&gt;&lt;p&gt;All I did is, &lt;br&gt;vi filename --&amp;gt; esc --&amp;gt; :%s/^v^m//g --&amp;gt; enter&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">eskay</dc:creator><pubDate>Thu, 21 Jul 2011 12:06:42 -0000</pubDate></item><item><title>Re: Remove ^M characters at end of lines in vi</title><link>http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/#comment-246024207</link><description>&lt;p&gt;Your attitude is unnecessary and not conducive to the sharing environment being attempted to be created here..  &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Petalmelissa</dc:creator><pubDate>Fri, 08 Jul 2011 14:18:52 -0000</pubDate></item><item><title>Re: Remove ^M characters at end of lines in vi</title><link>http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/#comment-212192601</link><description>&lt;p&gt;you're the man! &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Louispendis5</dc:creator><pubDate>Thu, 26 May 2011 10:47:30 -0000</pubDate></item><item><title>Re: Remove ^M characters at end of lines in vi</title><link>http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/#comment-194077645</link><description>&lt;p&gt;It worked .. thx&lt;br&gt;I also replaced '^@' with the same technique.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Piyush</dc:creator><pubDate>Fri, 29 Apr 2011 09:00:34 -0000</pubDate></item><item><title>Re: Remove ^M characters at end of lines in vi</title><link>http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/#comment-174052689</link><description>&lt;p&gt;I found dos2unix run against mysql slow log caused log to stop accruing entries.  This forced me to restart mysql to restore slow log entries. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">BMQ</dc:creator><pubDate>Tue, 29 Mar 2011 09:45:30 -0000</pubDate></item><item><title>Re: Remove ^M characters at end of lines in vi</title><link>http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/#comment-163083549</link><description>&lt;p&gt;This helps&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">PR </dc:creator><pubDate>Wed, 09 Mar 2011 13:43:28 -0000</pubDate></item><item><title>Re: Remove ^M characters at end of lines in vi</title><link>http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/#comment-136237662</link><description>&lt;p&gt;the original post works just fine; you just need to read it carefully.&lt;br&gt;Thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">S_zarembo</dc:creator><pubDate>Fri, 28 Jan 2011 17:29:57 -0000</pubDate></item><item><title>Re: Remove ^M characters at end of lines in vi</title><link>http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/#comment-131230326</link><description>&lt;p&gt;Thank you so mcuh lopezzzzzzzzzz........... you are my man... :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vinoo Usa</dc:creator><pubDate>Wed, 19 Jan 2011 04:56:11 -0000</pubDate></item><item><title>Re: Remove ^M characters at end of lines in vi</title><link>http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/#comment-123651765</link><description>&lt;p&gt;only a dummy does not know you can invoke any command, dos2unix etc...from within vi ...idiot&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bob</dc:creator><pubDate>Mon, 03 Jan 2011 18:44:28 -0000</pubDate></item><item><title>Re: Remove ^M characters at end of lines in vi</title><link>http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/#comment-117949070</link><description>&lt;p&gt;perfect solution&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vaibhav</dc:creator><pubDate>Fri, 24 Dec 2010 02:31:02 -0000</pubDate></item><item><title>Re: Remove ^M characters at end of lines in vi</title><link>http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/#comment-108504973</link><description>&lt;p&gt;nothing else people posted on here worked.  Thank you tons!!!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Team_Awesome</dc:creator><pubDate>Tue, 07 Dec 2010 20:43:26 -0000</pubDate></item><item><title>Re: Remove ^M characters at end of lines in vi</title><link>http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/#comment-102570930</link><description>&lt;p&gt;u meatheads who posted dos2unix etc....the heading is "Remove ^M characters at end of lines in vi" not oustide of.......dummies&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Grit</dc:creator><pubDate>Thu, 25 Nov 2010 07:44:40 -0000</pubDate></item><item><title>Re: Remove ^M characters at end of lines in vi</title><link>http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/#comment-95175900</link><description>&lt;p&gt;The original post is fine, you just have to be able to read.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Malice</dc:creator><pubDate>Mon, 08 Nov 2010 16:45:33 -0000</pubDate></item><item><title>Re: Remove ^M characters at end of lines in vi</title><link>http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/#comment-92930706</link><description>&lt;p&gt;vi file name&lt;/p&gt;&lt;p&gt;:%s[ctrl v][ctrl[m]//g worked for me to remove the cntrl m characters from the file. Thanks a lot :) &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ramakrishna Aazad</dc:creator><pubDate>Tue, 02 Nov 2010 05:50:34 -0000</pubDate></item><item><title>Re: Remove ^M characters at end of lines in vi</title><link>http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/#comment-91153461</link><description>&lt;p&gt;only tools cant use tools properly &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tallis</dc:creator><pubDate>Thu, 28 Oct 2010 11:05:42 -0000</pubDate></item><item><title>Re: Remove ^M characters at end of lines in vi</title><link>http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/#comment-89015890</link><description>&lt;p&gt;Thanks! The string re[place hadnt been working, but col -b worked for me :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Suchi</dc:creator><pubDate>Fri, 22 Oct 2010 01:11:23 -0000</pubDate></item><item><title>Re: Remove ^M characters at end of lines in vi</title><link>http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/#comment-86770490</link><description>&lt;p&gt;Thank u so very much.. This really worked :) Saved my day :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Yashaswikumar</dc:creator><pubDate>Thu, 14 Oct 2010 01:06:14 -0000</pubDate></item><item><title>Re: Remove ^M characters at end of lines in vi</title><link>http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/#comment-80619320</link><description>&lt;p&gt;&lt;br&gt;I know that ^M comes when we transfer a file from windows machine to a Unix machine from Telnet.&lt;/p&gt;&lt;p&gt;At first place what is the harm in having ^M characters? Is it going to cause any kind of issues by letting them just around? Just curious to know.&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nitin</dc:creator><pubDate>Fri, 24 Sep 2010 15:12:36 -0000</pubDate></item><item><title>Re: Remove ^M characters at end of lines in vi</title><link>http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/#comment-67508116</link><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Remove the last line from a txt file.&lt;/p&gt;&lt;p&gt;I have txt file with data like&lt;br&gt;1235 5678&lt;br&gt;3455 5678&lt;/p&gt;&lt;p&gt;and after 2nd line I pressed the enter. I tried to remove that enter in using many unix commands. but in unix I think it doesnt consider it as new line as when I check wc -l it gives me 2 but when I send this file to my C function it is considered as 3rd line.&lt;br&gt;Please telme the work around to remove the last line.&lt;/p&gt;&lt;p&gt;Thanks,&lt;br&gt;Leena&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Leena</dc:creator><pubDate>Tue, 10 Aug 2010 00:35:34 -0000</pubDate></item><item><title>Re: Remove ^M characters at end of lines in vi</title><link>http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/#comment-61642522</link><description>&lt;p&gt;More likely you don't know how to use vi.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">lota</dc:creator><pubDate>Sun, 11 Jul 2010 20:45:18 -0000</pubDate></item><item><title>Re: Remove ^M characters at end of lines in vi</title><link>http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/#comment-58118406</link><description>&lt;p&gt;correct answer is &lt;br&gt;:%s/{Ctrl+V}{Ctrl+M}//{Enter}&lt;/p&gt;&lt;p&gt;where {Ctrl+V }{Ctrl+M} stands for, you must press Ctrl+V and then Ctrl+M&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lopezscu</dc:creator><pubDate>Tue, 22 Jun 2010 18:21:21 -0000</pubDate></item><item><title>Re: Remove ^M characters at end of lines in vi</title><link>http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/#comment-58117773</link><description>&lt;p&gt;same for me, the post author is a retard... &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lopezscu</dc:creator><pubDate>Tue, 22 Jun 2010 18:16:49 -0000</pubDate></item><item><title>Re: Remove ^M characters at end of lines in vi</title><link>http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/#comment-57941460</link><description>&lt;p&gt;This worked..Thank you ..Original did not .. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bugged123</dc:creator><pubDate>Mon, 21 Jun 2010 16:44:10 -0000</pubDate></item></channel></rss>