<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.bytemycode.com/rssformat.xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>byteMyCode: Snippet Revisions</title>
		<link>http://www.bytemycode.com</link>
		<description>Revisions for this snippet.</description>
		<pubDate>Fri, 04 Jul 2008 11:01:50 +0000</pubDate>
		<copyright>1998-2008 </copyright>
		<language>en-us</language>
		<image>
		      <link>http://www.bytemycode.com</link>
		      <url>http://www.bytemycode.com/img/rss_title.gif</url>
		      <title>byteMyCode</title>
		</image>

	
	<item>
		<title>Code Counter 1</title>
		<link>http://www.bytemycode.com/snippets/snippet/362/1/</link>
		<comments>http://www.bytemycode.com/snippets/snippet/362/comments/</comments>
		<pubDate>Thu, 14 Sep 2006 13:45:16 +0000</pubDate>
		<dc:creator>dohpaz</dc:creator>
		<category>bash, Code, Comments, Grep, Sed</category>
		<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/362/</guid>
		<description>
			<![CDATA[
				<p>I found this script online, and decided that I would modify it for my needs. As a developer, I like to know how many actual lines of code I have written--not including any comments.<br /><br />It outputs in a very simple way:<br /><br />Including Comments:   NNN<br />Without Comments:    NNN<br /><br />One very practical, and quick, way to determine how many lines of code a project has is to pipe it through a find:<br /><br /><br />find /usr/share/php -name "*.php" -o -name "*.inc" | xargs count-code<br /><br /><br />If your code is in files of another type (i.e., .c, .h, .cpp, etc), then simply change the extensions and add more '-o -name "*.ext"' tags. If you have directories that you don't want to be counted, simple throw a "| grep -v [path/to/excluded/directory] |" inbetween the find and the xargs, and they will not be counted.</p>
			]]>
		</description>
	</item>

	
	</channel>
</rss>