title: cat command in unix shell script
body: <p>I have 2 lines of code </p>
  
  <p>1) With the following code:</p>
  
  <pre><code>for i in `ls *.properties`; do cat $i; done
  </code></pre>
  
  <p>I get the error:</p>
  
  <pre><code>cat: file_name.properties: No such file or directory.
  </code></pre>
  
  <p>2) On the other hand:</p>
  
  <pre><code>for i in *.properties; do cat $i; done
  </code></pre>
  
  <p>Works fine!</p>
  
  <p>I thought both were the same. Can someone help me understand the difference between the two? Using bash shell.</p>