I have a CSV file that contains 110 rows with an extra semicolon character, which interrupts the read processing of the file. The extra semicolon delimiter occurs in the 3rd position in these lines.
I have the following code to find the 110 rows, but how can I expand on it to remove the 3rd semicolon in these lines?
awk -F \; 'NF != 14' file.csv
Example input:
;1000;"First; Name";132;GB; ... ;Field14;
;1000;(Thank; You-);126;IR; ... ;Field14;
Wanted output:
;1000;"First Name";132;GB; ... ;Field14;
;1000;(Thank You-);126;IR; ... ;Field14;
Where the semicolon inside the field containing "First; Name" and (Thank; You-) has been removed