title: How to print columns from different files?
body: <p>I have problem that numbers from different files are not in one line.</p>
  
  <p>I tried:</p>
  
  <pre><code> paste file1 file2 file3|awk '{print $1, $2, $6, $10}'
  </code></pre>
  
  <p>file1:</p>
  
  <pre><code>a b c
  </code></pre>
  
  <p>file2:</p>
  
  <pre><code>d e f
  </code></pre>
  
  <p>file3:</p>
  
  <pre><code>g h i
  </code></pre>
  
  <p>output is:</p>
  
  <pre><code>a b
  e
  h
  </code></pre>
  
  <p>Desired output:</p>
  
  <pre><code>a b e h
  </code></pre>
  
  <p>it is columns 1 2 from file1, column 2 from file2 and column 2 from file3</p>