title: Add one column from one file to the end of multiple files
body: <p>I want to put one column from one file, the column 7,  (i.e motherfile) to the end column of many files (i.e child1.c, chil2.c child3.c and so on)</p>
  
  <p>motherfile</p>
  
  <pre><code>  38 WAT1 1    TIP3 OH2  OT    -0.834000       15.9994           0
    39 WAT1 1    TIP3 H1   HT     0.417000        1.0080           0
    40 WAT1 1    TIP3 H2   HT     0.417000        1.0080           0
    41 WAT1 2    TIP3 OH2  OT    -0.834000       15.9994           0
    42 WAT1 2    TIP3 H1   HT     0.417000        1.0080           0
  </code></pre>
  
  <p>child1.c</p>
  
  <pre><code>       O        -5.689000       -0.628000      -10.423000
         H        -6.663000       -0.744000      -10.224000
         H        -5.166000       -1.340000       -9.957000
         O        11.405000        3.612000        1.674000
         H        11.331000        4.609000        1.663000
  </code></pre>
  
  <p>child2.c</p>
  
  <pre><code>       O        -4.689000       -0.628000      -10.423000
         H        -5.663000       -0.744000      -10.224000
         H        -6.166000       -1.340000       -9.957000
         O        1.4405000        3.612000        1.674000
         H        14.331000        4.609000        1.663000
  </code></pre>
  
  <p>and so on ...</p>
  
  <p>I tried to use</p>
  
  <pre><code>awk '{f1 = $0; getline&lt;"motherfile"; print f1, $7}' &lt; child1.c &gt; newchild1.c
  </code></pre>
  
  <p>but this only function to add a column to one file , and I want to put the column to many files.</p>
  
  <p>Note the newchild.c need to be like this one.</p>
  
  <pre><code>       O        -5.689000       -0.628000      -10.423000 -0.834000       
         H        -6.663000       -0.744000      -10.224000 0.417000
         H        -5.166000       -1.340000       -9.957000 0.417000
         O        11.405000        3.612000        1.674000 -0.834000
         H        11.331000        4.609000        1.663000 0.417000
  </code></pre>