title: ls conditional in a linux script for loop
body: <p>I'm trying to create a simple <code>for</code> loop that will take all the outputs of an <code>ls</code> command and put each output into a variable. so far i have </p>
  
  <pre><code>for i in ls /home/svn
  do
      echo $i
  done
  </code></pre>
  
  <p>but it gives me an error. </p>