title: Let find only show the last item
body: <p>I think this is a tricky question.</p>
  
  <p>I've got a directory containing N recursive subdirectories. E.g:</p>
  
  <pre><code>/tmp/dir1/dir2
  /tmp/dir2
  /tmp/dir3/dir4/.../dir7
  /tmp/dir4/.../dirN
  </code></pre>
  
  <p>If I use find /tmp I get outputs like this:</p>
  
  <pre><code>/tmp/dir1
  /tmp/dir1/dir2
  /tmp/dir2
  /tmp/dir3
  /tmp/dir3/dir4
  </code></pre>
  
  <p>...</p>
  
  <p>But I only want to get the full path of the last folder in the subtree, not the parent directories listed individually.</p>
  
  <p>So in this case:</p>
  
  <pre><code>/tmp/dir1/dir2
  /tmp/dir2
  /tmp/dir3/dir4
  </code></pre>
  
  <p>I can't use mindepth and maxdepth, because I the amount of child-Folders is random.</p>