Your output does not correspond to the input.
The last two "E" values of each eight-pair are (249, and 19,) in the input.
But they are (un, and 284,) and (un, and 249,) in the output.
$
$ cat -n f26
1 E_TIM 16,
2 ETE 15,
3 EOND 26,
4 EEC 81,
5 E un,
6 E un,
7 E 249,
8 E 19,
9 E_TIM 17,
10 ETE 15,
11 EOND 29,
12 EEC 82,
13 E un,
14 E un,
15 E 249,
16 E 19,
$
$ perl -ne 'BEGIN { $fmt = "%-8s %-8s %-8s %-8s %-8s %-8s %-8s %-8s\n" }
if ($. % 8 == 1 and $. > 1) {
if (! $first) {
printf($fmt, map { $_->[0] } @x);
$first = 1;
}
printf($fmt, map { $_->[1] } @x);
@x = ();
}
/^(\S+)\s+(\S+)$/ and push @x, [ $1, $2 ];
END {
printf($fmt, map { $_->[1] } @x);
}
' f26
E_TIM ETE EOND EEC E E E E
16, 15, 26, 81, un, un, 249, 19,
17, 15, 29, 82, un, un, 249, 19,
$
$