Is it possible to handle fields containing line breaks in awk?
问题 Suppose I have a text file with records of the following form, where the FS is generally speaking a comma, and the RS is generally speaking a newline. However, the exception to this rule is that if a field is in quotes, it should treat the line breaks and commas as part of the field. "This field contains line breaks and is quoted but it should be treated as a single field",1,2,3,"another field" How can I use awk to parse such a file correctly, where I can still access $1,$2... , as I usually