NR == 1 { for (i = 2; i <= NF; i++) measurement[i] = $i next } { for (i = 2; i <= NF; i++) print $1, measurement[i], $i }