title: Use GNU find to show only the leaf directories
body: <p>I'm trying to use GNU find to find only the directories that contain no other directories, but may or may not contain regular files. </p>
  
  <p>My best guess so far has been:</p>
  
  <pre><code>find dir -type d \( -not -exec ls -dA ';' \)
  </code></pre>
  
  <p>but this just gets me a long list of "."</p>
  
  <p>Thanks!</p>