title: parsing ls -R output into a variable in Unix
body: <p>I am executing a <code>ls-R /files/</code></p>
  
  <p>I got the following output</p>
  
  <pre><code>./:    nvision
  ./nvision:    layout
  ./nvision/layout:    abcd.txt 
  </code></pre>
  
  <p>I am looking to get path in the listing like </p>
  
  <pre><code>/nvision
  /nvision/layout/
  /nvision/layout/abcd.txt
  </code></pre>
  
  <p>and  I should be able to copy the required path to a variable </p>
  
  <p>ps: <strong>I am not searching for nvision
  I am trying to get the list of folders and files under <code>files</code> folder</strong></p>
  
  <p>can any one help me with that</p>