This is my input:
"a","b","c","d",",","f"
Expected output:
"a","b","c","d","","f"
Basically for every occurring ",", I want to replace it with "".
Also I want to run the command for n number of lines of for n number of fields.
I have tried the below command
awk -F'"' -v OFS='' '{ for (i=2; i<=NF; i+=2) gsub(",", "", $i) } 1' infile
But it removes double quotes too but that is not what I require... I require double quotes also