<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="https://purl.org/rss/1.0/modules/content/"
	xmlns:dc="https://purl.org/dc/elements/1.1/"
	xmlns:atom="https://www.w3.org/2005/Atom"
	xmlns:sy="https://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Getting rid of the ^M characters in vi</title>
	<atom:link href="/blog/linux/removing-the-m-character-in-vim/feed/" rel="self" type="application/rss+xml" />
	<link>https://legend.ws/blog/linux/removing-the-m-character-in-vim/</link>
	<description>Random tech ramblings</description>
	<lastBuildDate>Mon, 16 Sep 2013 09:28:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: LTC</title>
		<link>https://legend.ws/blog/linux/removing-the-m-character-in-vim/#comment-39270</link>
		<dc:creator>LTC</dc:creator>
		<pubDate>Fri, 06 Jan 2012 10:40:13 +0000</pubDate>
		<guid isPermaLink="false">https://legend.ws/blog/?p=29#comment-39270</guid>
		<description><![CDATA[s means &quot;substitute&quot; not &quot;search and replace&quot;.  And it isn&#039;t nonsense. 
Searching, of course, is achieved using with the forward slash / character.]]></description>
		<content:encoded><![CDATA[<p>s means &#8220;substitute&#8221; not &#8220;search and replace&#8221;.  And it isn&#8217;t nonsense.<br />
Searching, of course, is achieved using with the forward slash / character.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>https://legend.ws/blog/linux/removing-the-m-character-in-vim/#comment-26229</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 31 Jan 2011 08:20:44 +0000</pubDate>
		<guid isPermaLink="false">https://legend.ws/blog/?p=29#comment-26229</guid>
		<description><![CDATA[cheers]]></description>
		<content:encoded><![CDATA[<p>cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prosthetic Lips</title>
		<link>https://legend.ws/blog/linux/removing-the-m-character-in-vim/#comment-25873</link>
		<dc:creator>Prosthetic Lips</dc:creator>
		<pubDate>Fri, 21 Jan 2011 22:26:30 +0000</pubDate>
		<guid isPermaLink="false">https://legend.ws/blog/?p=29#comment-25873</guid>
		<description><![CDATA[Um ... just a note, your explanation of the $ is wrong.

1,$ means &quot;lines 1 through the end of the file&quot;
s means &quot;search and replace&quot; (or some such nonsense)
g technically means &quot;do it through the whole line&quot; (otherwise it just does the first time it finds it)
the rest of your explanation was spot-on.  But, for example, you could say:

3,15s/^M//

to mean, replace all occurrences on lines 3 through 15.  The &quot;g&quot; probably doesn&#039;t matter to you, because you only get one per line anyway.

~Prosthetic Lips]]></description>
		<content:encoded><![CDATA[<p>Um &#8230; just a note, your explanation of the $ is wrong.</p>
<p>1,$ means &#8220;lines 1 through the end of the file&#8221;<br />
s means &#8220;search and replace&#8221; (or some such nonsense)<br />
g technically means &#8220;do it through the whole line&#8221; (otherwise it just does the first time it finds it)<br />
the rest of your explanation was spot-on.  But, for example, you could say:</p>
<p>3,15s/^M//</p>
<p>to mean, replace all occurrences on lines 3 through 15.  The &#8220;g&#8221; probably doesn&#8217;t matter to you, because you only get one per line anyway.</p>
<p>~Prosthetic Lips</p>
]]></content:encoded>
	</item>
</channel>
</rss>
