<?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>nineteen till i die &#187; ctrl-m</title>
	<atom:link href="http://pawanjain.com/blog/tag/ctrl-m/feed/" rel="self" type="application/rss+xml" />
	<link>http://pawanjain.com/blog</link>
	<description>secret rantings of an otherwise cool and calm person</description>
	<lastBuildDate>Thu, 07 Jan 2010 05:29:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<atom:link rel="next" href="http://pawanjain.com/blog/tag/ctrl-m/feed/?page=2" />

		<item>
		<title>The End-of-Line Story</title>
		<link>http://pawanjain.com/blog/2009/04/the-end-of-line-story/</link>
		<comments>http://pawanjain.com/blog/2009/04/the-end-of-line-story/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 20:32:29 +0000</pubDate>
		<dc:creator>zephyr19</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[ctrl-m]]></category>
		<category><![CDATA[editing]]></category>
		<category><![CDATA[newline]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://pawanjain.com/blog/?p=153</guid>
		<description><![CDATA[I got the answer to a mystery that existed with me since very long. When one creates a file in an editor in windows and opens it in unix in vim, the editor shows weird ^M characters at the end of each line.
I read this today. Now I know what that ^M actually stands for. [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I got the answer to a mystery that existed with me since very long. When one creates a file in an editor in windows and opens it in unix in vim, the editor shows weird ^M characters at the end of each line.</p>
<p>I read <a href="http://www.rfc-editor.org/EOLstory.txt">this</a> today. Now I know what that ^M actually stands for. Windows DOS (MS-DOS) and unix have different conventions for representing newlines. Windows uses both Carriage Return (CR) and Line Feed (LF) to represent a new line, whereas for unix, LF alone is a new line and it leaves CR as it is. It is this CR that is being shown as ^M (which is the assigned key stroke to generate a carriage return).</p>
<p>As the document says, because some person thought something some time in the past, we are faced with this confusion of CR LF and LF everywhere. And now we are writing utilities like dos2unix for this purpose !</p>
<p>By the way, the way to insert a CR in a string is &#8216;\r&#8217; and LF is &#8216;\n&#8217;.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pawanjain.com/blog/2009/04/the-end-of-line-story/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
