title: How to loop through file names returned by find?
body: <pre><code>x=$(find . -name "*.txt")
  echo $x
  </code></pre>
  
  <p>if I run the above piece of code in Bash shell, what I get is a string containing several file names separated by blank, not a list.</p>
  
  <p>Of course, I can further separate them by blank to get a list, but I'm sure there is a better way to do it.</p>
  
  <p>So what is the best way to loop through the results of a <code>find</code> command?</p>