I wan't to add two numbers (e.g 1.123 and 4.242) from different files but the add operation seems to cut the decimals. Any ideas how to convert or rewrite?
(The numbers in the file are in 1.123 and not 1,123)
That doesn't solve it. I think the problem is that the two numbers are read in with a dot decimal separator instead of a comma separator. How can I make awk keep the decimals ?
If that change doesn't help, have a look in your two intermediate files, and run your paste command, piping it to more, to see what it is producing (determine where the data is getting messed up).