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

var2.sh (182B)


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