<?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: Count the Number of Files in a Directory in Linux</title>
	<atom:link href="http://jamesconstable.co.uk/linux/count-the-number-of-files-in-a-directory-in-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamesconstable.co.uk/linux/count-the-number-of-files-in-a-directory-in-linux/</link>
	<description></description>
	<lastBuildDate>Tue, 27 Jul 2010 13:29:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
	<item>
		<title>By: diaspara</title>
		<link>http://jamesconstable.co.uk/linux/count-the-number-of-files-in-a-directory-in-linux/comment-page-1/#comment-548</link>
		<dc:creator>diaspara</dc:creator>
		<pubDate>Mon, 18 May 2009 09:16:15 +0000</pubDate>
		<guid isPermaLink="false">http://jamesconstable.co.uk/?p=331#comment-548</guid>
		<description>Use &#039;ls -1p &#124; grep -v &quot;/&quot; &#124; wc -l&#039; to count only files, not directories.</description>
		<content:encoded><![CDATA[<p>Use &#8216;ls -1p | grep -v &#8220;/&#8221; | wc -l&#8217; to count only files, not directories.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://jamesconstable.co.uk/linux/count-the-number-of-files-in-a-directory-in-linux/comment-page-1/#comment-547</link>
		<dc:creator>James</dc:creator>
		<pubDate>Sat, 16 May 2009 09:36:16 +0000</pubDate>
		<guid isPermaLink="false">http://jamesconstable.co.uk/?p=331#comment-547</guid>
		<description>That&#039;s not &#039;ls -l&#039; but &#039;ls -1&#039; (the number &#039;one&#039;).  That option makes ls put each entry on a separate line - which is why we can pass it through to &#039;wc -l&#039;</description>
		<content:encoded><![CDATA[<p>That&#8217;s not &#8216;ls -l&#8217; but &#8216;ls -1&#8242; (the number &#8216;one&#8217;).  That option makes ls put each entry on a separate line &#8211; which is why we can pass it through to &#8216;wc -l&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flipouk</title>
		<link>http://jamesconstable.co.uk/linux/count-the-number-of-files-in-a-directory-in-linux/comment-page-1/#comment-546</link>
		<dc:creator>flipouk</dc:creator>
		<pubDate>Sat, 16 May 2009 09:07:18 +0000</pubDate>
		<guid isPermaLink="false">http://jamesconstable.co.uk/?p=331#comment-546</guid>
		<description>I would use &#039;ls -l&#039; but simply &#039;ls&#039; because &#039;ls -l&#039; includes a line called &#039;total&#039; so if you pipe its output to &#039;wc -l&#039; you will end up having the number of files in the directory + 1.
F.</description>
		<content:encoded><![CDATA[<p>I would use &#8216;ls -l&#8217; but simply &#8216;ls&#8217; because &#8216;ls -l&#8217; includes a line called &#8216;total&#8217; so if you pipe its output to &#8216;wc -l&#8217; you will end up having the number of files in the directory + 1.<br />
F.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
