title: get multiple columns from multiple files into a single file shell
body: <p>Hi,<br>
        I have multiple files with the multiple columns, I want to select few different columns from every file and make it to single file. I have read the <a href="https://stackoverflow.com/questions/26342838/extracting-columns-from-multiple-files-into-a-single-output-file-from-the-comman">post</a> </p>
  
  <p>file1</p>
  
  <pre><code>Day   present absent total
  Mon    10      1      11 
  TUE    11      0      11
  WED     9      2      11
  THU     8      3      11 
  ...
  </code></pre>
  
  <p>file2</p>
  
  <pre><code>Day   present absent total
  Mon    18      3      21 
  TUE    15      6      21
  WED    19      2      21
  THU    17      4      21 
  ....
  </code></pre>
  
  <p>file 3</p>
  
  <pre><code>Day   present absent total
  Mon    50      1      51 
  TUE    51      0      51
  WED    49      2      51
  THU    48      3      51 
  ....
  </code></pre>
  
  <p>make it to single file</p>
  
  <pre><code>Day   present present present
  Mon    10      18      50 
  TUE    11      15      51
  WED     9      19      49
  THU     8      17      48
   ....
  </code></pre>
  
  <p>How can I make it with shell/bash command?</p>
  
  <pre><code>[awk '{a\[FNR\] = a\[FNR\]" " $7}END{for(i=0;i&lt;FNR;i++) print a\[i\]}'][2]         
  </code></pre>