I have 3000 files (1.out, 2.out, 3.out...., each with a single column something like this:
0.446477
0.439331
0.444394
0.425003
0.428981
0.419547
0.432834
0.417874
........
I need to calculate average and standard deviation for each row across 3000 files. I could calculate the average using:
awk '{a[FNR]+=$1;b[FNR]++;}END{for(i=1;i<=FNR;i++)print a[i]/b[i];}' *.out
But I am stuck with the calculation of standard deviation.