I have some data in this form:
0.123456 11.234567 -22.345678
-3.456789 4.567891 -5.678912 etc
I would like to convert them in a matrix with 8columns in a scientific format with +- sign, one number before and 6 numbers after the decimal point, such as:
+0.123456E+00 +1.123456E+01 -2.234567E+01 etc
I've tried something like this but it doesn't work:
sed -n '31,46p' $filename1|xargs -n8|printf "%13.6e" >>file2.txt
Any ideas?