I was wondering how to format the following output:
-0.3116274D-04 -0.2389361D-04 -0.1192458D-04 0.3306203D-04 0.2534987D-04 0.1265136D-04 -0.2167920D-04 -0.
Try this:
printf "%14s %14s %14s %14s %14s\n" $(cat data.txt)