This must have been done a million times but I can't seem to find the solution
I have a "normal" comma-separated file (.csv) with some text fields in double-quotes. These fields MAY contain a comma, which should be changed to a space.
I want to use sed and/or awk (or gawk) to zap the unwanted commas, leaving the legit delimiting commas intact.
Any help appreciated ... TA
PS If it makes things easier - there are 20 fields, and the only ones where commas in quotes can occur are fields 4 thru 8 incl.
I have a "normal" comma-separated file (.csv) with some text fields in double-quotes. These fields MAY contain a comma, which should be changed to a space.
I want to use sed and/or awk (or gawk) to zap the unwanted commas, leaving the legit delimiting commas intact.
Any help appreciated ... TA
PS If it makes things easier - there are 20 fields, and the only ones where commas in quotes can occur are fields 4 thru 8 incl.