title: Unix Find directories containing more than 2 files
body: <p>I have a directory containing over a thousand subdirectories. I only want to 'ls' all the directories that contain more than 2 files. I don't need the directories that contain less than 2 files. This is in C-shell, not bash. Anyone know of a good command for this?</p>
  
  <p>I tried this command but it's not giving the desired output. I simply want the full list of directories with more than 2 files. A reason it isn't working is because it will go into sub dirs in those dirs to find if they have more than 2 files. I don't want a recursive search. Just a list of first level directories in the main directory they are in.</p>
  
  <p><code>$ find . -type f -printf '%h\n' | sort | uniq -c | awk '$1 &gt; 2'</code></p>