awk '{
sum = 0;
M = 0;
S = 0;
for (k=1; k <= NF; k++) {
sum += $k;
x = $k;
oldM = M;
M = M + ((x - M)/k);
S = S + (x - M)*(x - oldM);
}
var = S/(NF - 1);
print "n=" NF " mean=" sum/(NF) " var=" var " sd=" sqrt(var);
}' <<< $boo
n=11 mean=2.02987 var=4.60305 sd=2.14547