<?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: Find the directories containing the most files</title>
	<atom:link href="http://www.drjason.com/2009/03/find-the-directories-containing-the-most-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.drjason.com/2009/03/find-the-directories-containing-the-most-files/</link>
	<description>Dr Perky sucks.</description>
	<lastBuildDate>Sat, 31 Dec 2011 10:17:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: jason</title>
		<link>http://www.drjason.com/2009/03/find-the-directories-containing-the-most-files/comment-page-1/#comment-47</link>
		<dc:creator>jason</dc:creator>
		<pubDate>Sat, 28 Mar 2009 16:18:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.drjason.com/?p=386#comment-47</guid>
		<description>Oh, and the one you supplied only goes down one level, I think--it doesn&#039;t recurse.  :-)</description>
		<content:encoded><![CDATA[<p>Oh, and the one you supplied only goes down one level, I think&#8211;it doesn&#8217;t recurse.  <img src='http://www.drjason.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jason</title>
		<link>http://www.drjason.com/2009/03/find-the-directories-containing-the-most-files/comment-page-1/#comment-46</link>
		<dc:creator>jason</dc:creator>
		<pubDate>Sat, 28 Mar 2009 16:17:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.drjason.com/?p=386#comment-46</guid>
		<description>I know what you mean--I didn&#039;t want to have Perl in there, either.  I initially tried to hook something up using only find, xargs, and wc, but couldn&#039;t get the pipes to work out how I wanted them.

I tried something like this:
&lt;code&gt;find . -type d -print0 &#124; xargs -0 -I {} find {} -print &#124; wc -l&lt;/code&gt;

...but I needed the second pipe to apply to the second find, not to xargs.  I couldn&#039;t seem to hook that up.</description>
		<content:encoded><![CDATA[<p>I know what you mean&#8211;I didn&#8217;t want to have Perl in there, either.  I initially tried to hook something up using only find, xargs, and wc, but couldn&#8217;t get the pipes to work out how I wanted them.</p>
<p>I tried something like this:<br />
<code>find . -type d -print0 | xargs -0 -I {} find {} -print | wc -l</code></p>
<p>&#8230;but I needed the second pipe to apply to the second find, not to xargs.  I couldn&#8217;t seem to hook that up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.drjason.com/2009/03/find-the-directories-containing-the-most-files/comment-page-1/#comment-45</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Sat, 28 Mar 2009 13:10:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.drjason.com/?p=386#comment-45</guid>
		<description>Would something along these lines this do what you wanted?

for d in */; do    set -- &quot;$d&quot;*;   printf &quot;%s: %d\n&quot; &quot;${d%/}&quot; &quot;$#&quot;; done

I don&#039;t like needing perl in there...  :)</description>
		<content:encoded><![CDATA[<p>Would something along these lines this do what you wanted?</p>
<p>for d in */; do    set &#8212; &#8220;$d&#8221;*;   printf &#8220;%s: %d\n&#8221; &#8220;${d%/}&#8221; &#8220;$#&#8221;; done</p>
<p>I don&#8217;t like needing perl in there&#8230;  <img src='http://www.drjason.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

