I have a file with the following data:
2.18521
3.00948
4.35773
5.43936
And I would like it to look like this:
2.18521 3.00948 4.35773 5.43936
How can I implement this using the sed or any other command in linux? I could use:
sed -i '2.18521 /2.18521/g' file
But this does not help since there are many numbers in the file with different numerical values and I cannot go through all of them.
I should add that, the data actually looks like this:
0 0 0 0 0 0
2.18521
3.00948
4.35773
5.43936
And I do not want anything to be done with the numbers above the block. The output should look like this:
0 0 0 0 0 0
2.18521 3.00948 4.35773 5.43936