Hello,
i need some help cause of wrong sql export.
i have
INSERT INTO table
(row0,row1,row2,row3,row4,row5,row6)
VALUES
(6655,35,88,654723456287654,237178985434723,812,734654323465424)
/
INSERT INTO table
(row0,row1,row2,row3,row4,row5,row6)
VALUES
(6533,76,87,234513,64433326,7,64,3)
As you see, sometimes there are 8 values instead of 7. So i need to replace the last "," with "." if there are 8 values, to get:
INSERT INTO table
(row0,row1,row2,row3,row4,row5,row6)
VALUES
(6655,35,88,654723456287654,237178985434723,812,734654323465424)
/
INSERT INTO table
(row0,row1,row2,row3,row4,row5,row6)
VALUES
(6533,76,87,234513,64433326,7,64.3)
Can't understand how to do this with sed or awk :\
thx for helping.