<?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>sysadmin Tips &#187; vi</title>
	<atom:link href="http://www.djinns.net/tag/vi/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.djinns.net</link>
	<description></description>
	<lastBuildDate>Sat, 09 Jan 2010 15:12:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to remove ^M from files</title>
		<link>http://www.djinns.net/2010/01/09/how-to-remove-m-from-files/</link>
		<comments>http://www.djinns.net/2010/01/09/how-to-remove-m-from-files/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 15:12:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Devian]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[vi]]></category>

		<guid isPermaLink="false">http://www.djinns.net/?p=74</guid>
		<description><![CDATA[When you transfered a file from Windows to Linux, you have ^ M characters that appear. This is due to the end line characters on Windows (\ r \ n) which are differents from Linux (\ n). There is some tips to remove them.

On vi, in command mode

:%s/[ctrl+v][ctrl+M]//

On emacs

M-%

From the shell, install tofrodos (on Debian):

$ [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">When you transfered a file from Windows to Linux, you have ^ M characters that appear. This is due to the end line characters on Windows (\ r \ n) which are differents from Linux (\ n). There is some tips to remove them.</p>
<ul>
<li>On vi, in command mode</li>
</ul>
<pre class="brush: php">:%s/[ctrl+v][ctrl+M]//</pre>
<ul>
<li>On emacs</li>
</ul>
<pre class="brush: php">M-%</pre>
<ul>
<li>From the shell, install tofrodos (on Debian):</li>
</ul>
<pre class="brush: php">$ dos2unix file.txt

$ unix2dos file.txt</pre>
<p>The second command do the opposite.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.djinns.net/2010/01/09/how-to-remove-m-from-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
