Ok.. it's clear now. I will suggest my previous awk code (see post #23) with a little modification to specify the format of the numeric results. I'm sure grail and MTK358 will refine their suggestions, as well.
Code:
BEGIN { OFMT = "%.6f"; factor = 219474.6306726 }
{
gsub(/D/,"E")
for ( i=1; i<=NF; i++ )
array[++count] = $i
}
END {
for ( i=1; i<=count/NR; i++ ) {
for ( j=0; j<NR; j++ ) {
print j+1, array[i+j*NF] * factor
}
}
}
This is independent from the number of rows and columns. The
OFMT variable controls the format of the numeric output with the print statement.
Last but not least, two advices for good awk readings:
1. the official GNU awk manual:
http://www.gnu.org/software/gawk/manual/
2. the grymoire's awk tutorial:
http://www.grymoire.com/Unix/Awk.html
Hope this helps!