I need to replace a specific character, like comma, in a csv file.

I have files with text and numeric separated by ';' (csv as French...)

Example:

```
value;x;y;comment;
abc;123,45;987,65;abc;
abc;123.45;987.65;abc;
abc;123,45;987,65;abc, blabla;

```

There is a mix for the decimal separator , both ',' and '.' are used.

I want to replace ',' by '.' but ONLY for decimal values, not text like comments.

I tried sed with regex

```sh
sed -i '/;[0-9]\+,[0-9]\+;/s/,/./g' file.csv

```

But that replace all comma. I can't found how to replace only what I want.

I want to do that only in bash.