title: Shell script output file to be saved in MSExcel
body: <p>I have a Shell script output file</p>
  
  <pre><code>aa bb
  cc dd
  eee fff
  </code></pre>
  
  <p>and want to save this in excel sheet with two columns.</p>
  
  <pre><code>first  second
    aa      bb
    cc      dd
   eee      fff
  </code></pre>
  
  <p>Online browsing I found this </p>
  
  <pre><code>awk 'BEGIN{ OFS=" "; print "first|second"};
  NR &gt; 1{print "$0", "$1"}' input.txt &gt; Output.xls
  </code></pre>
  
  <p>But I do not get the output file.</p>