I am trying to replace the field separator from , to | except for the strings which are under double quotes   . The following command works fine :awk -F\ '{for(i=1;i<=NF;i+=2) {gsub(,,|,$i)}}1' OFS=\ input.csv > output.csvCan someone explain me this command ?
gsub command in awk
awk