grid-14-virt-clusters

Applications of on-demand virtual clusters to high performance computing
git clone https://git.igankevich.com/grid-14-virt-clusters.git
Log | Files | Refs

var.sh (256B)


      1 #!/bin/sh
      2 
      3 awk '{
      4 	a[$1] += ($2-$7)**2
      5 	b[$1] += ($3-$8)**2
      6 	c[$1] += ($4-$9)**2
      7 	d[$1] += ($5-$10)**2
      8 	e[$1] += ($6-$11)**2
      9 	count[$1] += 1
     10 } END {
     11 	for (i in a) {
     12 		print i, a[i]/count[i], b[i]/count[i], c[i]/count[i], d[i]/count[i], e[i]/count[i]
     13 	}
     14 }'