title: Use return value of a shell command as a value in shell script?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/613572/capturing-multiple-line-output-to-a-bash-variable">Capturing multiple line output to a bash variable</a>  </p>
  </blockquote>
  
  
  
  <p>For example I want to run ls command and take the return list as a value kept in a array in shell script.</p>
  
  <p>Something like</p>
  
  <p>run </p>
  
  <pre><code>#ls
  fileA
  fileB
  fileC
  </code></pre>
  
  <p>kept this return list in a variable that keeps a array</p>
  
  <pre><code>variable A = ["fileA","fileB","fileC"];
  </code></pre>
  
  <p>I cannot give the exact notation for code since I do not know how to write shell script. After I learn this, I 'll.</p>