title: Find all files in a directory that are not directories themselves
body: <p>I am looking for a way to list all the files in a directory excluding directories themselves, and the files in those sub-directories.</p>
  
  <p>So if I have:</p>
  
  <pre><code>./test.log
  ./test2.log
  ./directory
  ./directory/file2
  </code></pre>
  
  <p>I want a command that returns: ./test.log ./test2.log and nothing else.</p>