Text processing on CSV file

I am dealing with a file which has the following form:

"1999-01-04";1391.12;3034.53;66.515625;86.2;441.39
"1999-01-05";1404.86;3072.41;66.3125;86.17;440.63
"1999-01-06";1435.12;3156.59;66.4375;86.32;441

Sometimes, there are values with no decimals (e.g. 441 instead of 441.0) and I need the decimals to be there. How do I write a script such that all integers are added .0 so that they become floats?


Source: shell

Leave a Reply