title: How to perform a for-each loop over all the files under a specified path?
body: <p>The following command attempts to enumerate all <code>*.txt</code> files in the current directory and process them one by one:</p>
  
  <pre><code>for line in "find . -iname '*.txt'"; do 
       echo $line
       ls -l $line; 
  done
  </code></pre>
  
  <p>Why do I get the following error?:</p>
  
  <pre><code>ls: invalid option -- 'e'
  Try `ls --help' for more information.
  </code></pre>