使用awk高效解析CSV的最健壮的方法是什么?
$ cat file.csv"rec1, fld1",,"rec1"",""fld3.1 "", fld3.2","rec1 fld4""rec2, fld1.1 fld1.2","rec2 fld2.1""fld2.2""fld2.3","",rec2 fld4
Record 1: $1=<rec1, fld1> $2=<> $3=<rec1","fld3.1", fld3.2> $4=<rec1 fld4> ---- Record 2: $1=<rec2, fld1.1 fld1.2> $2=<rec2 fld2.1"fld2.2"fld2.3> $3=<> $4=<rec2 fld4> ----
\n
\r\n
"
\"
""
gsub(/\\"/,"\"\"")