{ sed 's/ /+/3' | xargs printf '%G% G% G\n'; } <in >out
1 1 1423
1 2 1589
1 3 85000
1 4 8900
1 5 8796
You'll wanna play around with the %G
precision flags if the numbers get much larger than that.
{ sed 's/ /+/3' | xargs printf '%G% G% G\n'; } <in >out
1 1 1423
1 2 1589
1 3 85000
1 4 8900
1 5 8796
You'll wanna play around with the %G
precision flags if the numbers get much larger than that.