<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Convert camelCase to Underscores Using sed</title>
	<atom:link href="http://www.amirwatad.com/blog/archives/2009/05/30/convert-camelcase-to-underscores-using-sed/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.amirwatad.com/blog/archives/2009/05/30/convert-camelcase-to-underscores-using-sed/</link>
	<description>Remember the name ;)</description>
	<lastBuildDate>Wed, 14 Jul 2010 22:35:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Oran</title>
		<link>http://www.amirwatad.com/blog/archives/2009/05/30/convert-camelcase-to-underscores-using-sed/comment-page-1/#comment-205</link>
		<dc:creator>Oran</dc:creator>
		<pubDate>Thu, 08 Oct 2009 04:18:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.amirwatad.com/blog/?p=444#comment-205</guid>
		<description>Another solution to convert camel_case to CamelCase:
sed -e &#039;s/\(^\&#124;_\)\(.\)/\U\2/g&#039;</description>
		<content:encoded><![CDATA[<p>Another solution to convert camel_case to CamelCase:<br />
sed -e &#8216;s/\(^\|_\)\(.\)/\U\2/g&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manish Sinha</title>
		<link>http://www.amirwatad.com/blog/archives/2009/05/30/convert-camelcase-to-underscores-using-sed/comment-page-1/#comment-197</link>
		<dc:creator>Manish Sinha</dc:creator>
		<pubDate>Wed, 02 Sep 2009 18:50:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.amirwatad.com/blog/?p=444#comment-197</guid>
		<description>AFAIK 

TcpListener-- this is PascalCase
tcpListener -- this is camelCase</description>
		<content:encoded><![CDATA[<p>AFAIK </p>
<p>TcpListener&#8211; this is PascalCase<br />
tcpListener &#8212; this is camelCase</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.amirwatad.com/blog/archives/2009/05/30/convert-camelcase-to-underscores-using-sed/comment-page-1/#comment-189</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sun, 05 Jul 2009 11:18:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.amirwatad.com/blog/?p=444#comment-189</guid>
		<description>I look forward to a full solution.

Thanks again Amir.</description>
		<content:encoded><![CDATA[<p>I look forward to a full solution.</p>
<p>Thanks again Amir.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amir Watad</title>
		<link>http://www.amirwatad.com/blog/archives/2009/05/30/convert-camelcase-to-underscores-using-sed/comment-page-1/#comment-188</link>
		<dc:creator>Amir Watad</dc:creator>
		<pubDate>Fri, 03 Jul 2009 09:11:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.amirwatad.com/blog/?p=444#comment-188</guid>
		<description>This does half of the job:

&lt;code lang=&quot;bash&quot;&gt;
sed -e &#039;s/\([a-z]\)\([A-Z]\)/\1_\2/g&#039; -e &#039;s/^_\([a-zA-Z]\)/\1/g&#039; file.txt
&lt;/code&gt;

Will try to find a complete solution as soon as I have time.</description>
		<content:encoded><![CDATA[<p>This does half of the job:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'s/\([a-z]\)\([A-Z]\)/\1_\2/g'</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'s/^_\([a-zA-Z]\)/\1/g'</span> file.txt</div></td></tr></tbody></table></div>
<p>Will try to find a complete solution as soon as I have time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.amirwatad.com/blog/archives/2009/05/30/convert-camelcase-to-underscores-using-sed/comment-page-1/#comment-187</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Tue, 30 Jun 2009 10:33:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.amirwatad.com/blog/?p=444#comment-187</guid>
		<description>Thanks for sharing this Amir.

Would it be possible to carry out the following in one script or command?

camelCase =&gt; camel_case
camelCaseLong =&gt; camel_case_long
camelCaseXYZ =&gt; camel_case_xyz

CamelCase =&gt; Camel_Case
CamelCaseLong =&gt; Camel_Case_Long
CamelCaseXYZ =&gt; Camel_Case_XYZ

I&#039;m open to all suggestions.

Many thanks,

Michael</description>
		<content:encoded><![CDATA[<p>Thanks for sharing this Amir.</p>
<p>Would it be possible to carry out the following in one script or command?</p>
<p>camelCase =&gt; camel_case<br />
camelCaseLong =&gt; camel_case_long<br />
camelCaseXYZ =&gt; camel_case_xyz</p>
<p>CamelCase =&gt; Camel_Case<br />
CamelCaseLong =&gt; Camel_Case_Long<br />
CamelCaseXYZ =&gt; Camel_Case_XYZ</p>
<p>I&#8217;m open to all suggestions.</p>
<p>Many thanks,</p>
<p>Michael</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 1.418 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-07-30 20:46:04 -->
