title: How to use cut and paste together in one go
body: <p>I am trying to use cut and paste in the same command line but somehow it does not work. 
  I have two files, fileA and fileB. </p>
  
  <pre><code>fileA
  a b
  c d
  
  
  fileB
  1 2 3 4
  5 6 7 8
  </code></pre>
  
  <p>I would like to cut the second and third column of fileB. I do this by the following command.</p>
  
  <pre><code>cut -f 2-3 fileB
  </code></pre>
  
  <p>Then in front of this, I would like to paste columns from fileA</p>
  
  <pre><code>paste fileA | cut -f 2-3 fileB &gt; myNewFile
  </code></pre>
  
  <p>So myNewFile will look like</p>
  
  <pre><code>a b 2 3
  c d 6 7
  </code></pre>
  
  <p>I can do this in two lines. </p>
  
  <pre><code>cut -f 2-3 fileB &gt; part1
  paste fileA part1 &gt; myNewFile
  </code></pre>
  
  <p>But instead, i would like to do this in one go. Something similar to</p>
  
  <pre><code>paste fileA | cut -f 2-3 fileB &gt; myNewFile
  </code></pre>
  
  <p>which does not work. It only prints the cut commands and do not do anything about the paste. How can i make this work in one command?</p>
  
  <p>Thanks. </p>