title: Utility To Count Number Of Lines Of Code In Python Or Bash
body: <p>Is there a quick and dirty way in either python or bash script, that can recursively descend a directory and count the total number of lines of code? We would like to be able to exclude certain directories though.</p>
  
  <p>For example:</p>
  
  <pre><code>start at: /apps/projects/reallycoolapp
  exclude: lib/, frameworks/
  </code></pre>
  
  <p>The excluded directories should be recursive as well. For example:</p>
  
  <pre><code>/app/projects/reallycool/lib SHOULD BE EXCLUDED
  /app/projects/reallycool/modules/apple/frameworks SHOULD ALSO BE EXCLUDED
  </code></pre>
  
  <p>This would be a really useful utility.</p>