title: Increment and add value to specific column
body: <p>I have some files where I will like to add value in column 3 ( + 2000 ) each time the loop read new file and output new file with changes done in column 3</p>
  
  <p>this is what i try to do</p>
  
  <pre><code>  for tt in file file2 file3
      do
      awk '{$3=sprintf("2%06s",$3)} 1'  $tt &gt; file1a
      done
  </code></pre>
  
  <p>Here the inputs and outputs desired. </p>
  
  <p>input1</p>
  
  <pre><code>X  9367      211L  36829.00  47705.001 7561 77761  37260.00  47706.00  48136.001
  X  9367     1101L  36829.00  47717.001 7771 79921  37260.00  47706.00  48148.001
  X  9367     1201L  36829.00  47729.001 7981 82081  37260.00  47706.00  48160.001
  X  9367     2491L  36829.00  47741.001 8191 84241  37260.00  47706.00  48172.001
  </code></pre>
  
  <p>output1</p>
  
  <pre><code>X  9367    20211L  36829.00  47705.001 7561 77761  37260.00  47706.00  48136.001
  X  9367    21101L  36829.00  47717.001 7771 79921  37260.00  47706.00  48148.001
  X  9367    21201L  36829.00  47729.001 7981 82081  37260.00  47706.00  48160.001
  X  9367    22491L  36829.00  47741.001 8191 84241  37260.00  47706.00  48172.001
  </code></pre>
  
  <p>input2</p>
  
  <pre><code>X  8367      211L  36829.00  47705.001 7561 77761  37260.00  47706.00  48136.001
  X  8367     1101L  36829.00  47717.001 7771 79921  37260.00  47706.00  48148.001
  X  8367     1201L  36829.00  47729.001 7981 82081  37260.00  47706.00  48160.001
  X  8367     2491L  36829.00  47741.001 8191 84241  37260.00  47706.00  48172.001
  </code></pre>
  
  <p>output2</p>
  
  <pre><code>X  8367    40211L  36829.00  47705.001 7561 77761  37260.00  47706.00  48136.001
  X  8367    41101L  36829.00  47717.001 7771 79921  37260.00  47706.00  48148.001
  X  8367    41201L  36829.00  47729.001 7981 82081  37260.00  47706.00  48160.001
  X  8367    42491L  36829.00  47741.001 8191 84241  37260.00  47706.00  48172.001
  </code></pre>
  
  <p>input3</p>
  
  <pre><code>X  7367      211L  36829.00  47705.001 7561 77761  37260.00  47706.00  48136.001
  X  7367     1101L  36829.00  47717.001 7771 79921  37260.00  47706.00  48148.001
  X  7367     1201L  36829.00  47729.001 7981 82081  37260.00  47706.00  48160.001
  X  7367     2491L  36829.00  47741.001 8191 84241  37260.00  47706.00  48172.001
  </code></pre>
  
  <p>output3</p>
  
  <pre><code>X  7367    60211L  36829.00  47705.001 7561 77761  37260.00  47706.00  48136.001
  X  7367    61101L  36829.00  47717.001 7771 79921  37260.00  47706.00  48148.001
  X  7367    61201L  36829.00  47729.001 7981 82081  37260.00  47706.00  48160.001
  X  7367    62491L  36829.00  47741.001 8191 84241  37260.00  47706.00  48172.001
  </code></pre>