<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux Explore &#187; dos2unix</title>
	<atom:link href="https://blog.linuxexplore.com/tag/dos2unix/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.linuxexplore.com</link>
	<description>Exploring Linux</description>
	<lastBuildDate>Mon, 07 Apr 2014 00:30:50 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>Remove ^M (CTRL+M) from a file in Linux</title>
		<link>https://blog.linuxexplore.com/2012/06/22/remove-m-ctrlm-from-a-file-in-linux/</link>
		<comments>https://blog.linuxexplore.com/2012/06/22/remove-m-ctrlm-from-a-file-in-linux/#comments</comments>
		<pubDate>Thu, 21 Jun 2012 20:22:11 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore Tips & Tricks]]></category>
		<category><![CDATA[control+m]]></category>
		<category><![CDATA[dos2unix]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[vi]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[^M]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=446</guid>
		<description><![CDATA[Unix and windows file formats are different. Sometime a Unix file which edit in Windows put a special character at the end of each line i.e ^M (CTRL+M). It can make that file useless sometime. But no worry you can fix that with ease, just follow the procedure given below: Open the file in vim&#8230;]]></description>
				<content:encoded><![CDATA[<p>Unix and windows file formats are different. Sometime a Unix file which edit in Windows put a special character at the end of each line i.e <strong>^M</strong> (CTRL+M). It can make that file useless sometime.</p>
<p>But no worry you can fix that with ease, just follow the procedure given below:</p>
<ul>
<li>Open the file in <strong>vim</strong> or <strong>vi</strong></li>
</ul>
<blockquote>
<pre>vi myfile</pre>
</blockquote>
<ul>
<li>Then press ESC key, and type</li>
</ul>
<blockquote>
<pre>:%s/^M//g</pre>
</blockquote>
<ul>
<li>Remember <strong>^M</strong> is a special character which can be generated as given in NOTE.</li>
</ul>
<p>sed command can also be used for this as follows:</p>
<blockquote>
<pre>sed 's/^M//g' myfile&gt; newfile</pre>
</blockquote>
<p>^M is also a special character here.</p>
<p>That&#8217;s all, your file is same as last.</p>
<p><strong>NOTE:</strong> Hold the control key and then press v and m to get the <strong>^M</strong> (CTRL+M) character.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2012/06/22/remove-m-ctrlm-from-a-file-in-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
