|
Thanx, That almost worked...
But the output to your code yields:
3 6 9
1 4 7
2 5 8
So i just fiddled with it a bit and came up with
1 4 7
2 5 8
3 6 9
using awk '{a[NR%2+2]=a[NR%3+1]" "$0} END {for (i in a){print a[i]}}' inputfile, but i hav one open line at the beginning of the file
---------- Post updated at 07:47 AM ---------- Previous update was at 07:39 AM ----------
if i apply this to:
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
4.600000
9.800000
12.70000
12.90000
33.80000
i lose the ascending order in the 3rd column... y is this and how can i fix it?
0.000000 0.000000 0.000000
0.000000 0.000000 0.000000
0.000000 0.000000 0.000000
0.000000 0.000000 0.000000
0.000000 0.000000 0.000000
0.000000 0.000000 0.000000
0.000000 0.000000 0.000000
0.000000 0.000000 4.600000
0.000000 0.000000 9.800000
0.000000 0.000000 12.70000
0.000000 0.000000 33.80000
0.000000 0.000000 12.90000
0.000000 0.000000 0.000000
0.000000 0.000000 0.000000
|