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

avg.sh (214B)


      1 #!/bin/sh
      2 
      3 awk '{
      4 	a[$1] += $2
      5 	b[$1] += $3
      6 	c[$1] += $4
      7 	d[$1] += $5
      8 	e[$1] += $6
      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 }'