title: Export results of the command tree in csv file with columns
body: <p>I need to save the results of our directory structure, only folders, from the linux server and export the results in a csv file with columns. </p>
  
  <p>What I tried and works best is <code>tree -d /path/folder/ -L 3 &gt; file.csv</code>
  I tried to combine with <code>column</code> but my knowledge is ye.. limited.</p>
  
  <p>Best would be if I can list the first level of a directory in column A, second level in column B and the last one in column C.</p>