title: calculating average using awk from multiple files
body: <p>I have 500 files with name fort.1, fort.2 ... fort.500. Each file contains 800 data as below: </p>
  
  <blockquote>
    <p>1   0.485<br>
       2   0.028<br>
       3   0.100<br>
       4   0.979<br>
       5   0.338<br>
       6   0.891<br>
       7   0.415<br>
       8   0.368<br>
       9   0.245<br>
      10   0.489   </p>
  </blockquote>
  
  <p>I want to get the average of each line of second column from every file. In other words, get average of second column first line from all files and store in "output.file". Then get average of second column of second line and store in the same "output.file". 
  I tried with paste command but fail to get what I want.
  IS there any way to do in AWK?</p>
  
  <p>Appreciate any help.
  Thanks</p>