I have the following file which has the first two rows as if they were a single-column (i.e. a continuous string). I would like to separate them into columns and replace the * character with an x number giving the scientific-notation and column-format as fourth and fifth rows. 0.001000000*********************************************0.061059059-3524.927327218-3524.938421865***************0.121118118 -887.564833130 -887.569649256-6250.3509465270.181177177 -387.169559377 -387.173137963-2743.9819856330.241236236 -223.812193853 -223.815321341-1504.7991550860.301295295 -134.073058536 -134.075910507 -924.9163056530.361354354  -76.668692929  -76.671412688 -612.480371134Note that lines 1,2 & 3 have the same problem of having 2 consecutive columns as if there were a single-column (I would like to put a space between them). I would also like to perform a complex operation such as sqrt((sqrt($2 ^ 2 + $4 ^ 2) + $2) / 2) between columns.Expected Results:0.001000000 -3524.927327218 -3524.938421865 -6250.3509465270.061059059 -3524.927327218 -3524.938421865 -6250.3509465270.121118118  -887.564833130  -887.569649256 -6250.3509465270.181177177  -387.169559377  -387.173137963 -2743.9819856330.241236236  -223.812193853  -223.815321341 -1504.7991550860.301295295  -134.073058536  -134.075910507  -924.9163056530.361354354   -76.668692929   -76.671412688  -612.480371134I would like to know if there is any solution to my problem, I have reviewed many solutions to solve each problem separately but as I am a beginner, this has taken me more than a week, I would greatly appreciate it if you help me about it.Best regards.
How change first rows in column format of next's rows, replacing * by a number and perform operations between columns?
shell script;awk;sed;bc