I have been able to understand from the GNU page of GAWK that it can handle delimiters in data using the FPAT
variable but I can't make through how this works. For a CSV file the FPAT value is:
FPAT = "([^,]+)|(\"[^\"]+\")"
Using the data:
abc,"pqr,mno"
The first grouped expression evaluates to everything i.e. not a comma, this should take "abc"
as data then fail for the first occurrence of comma. Now my question is what happens next? As the first grouped expression failed will the regexp continue from the character after comma using the or condition? but the first grouped expression continues to be valid for all data after the comma so it might take "pqr
as next data?