Not when the data is like this.
"Richard, Martin", "23 NS, North Coast, NY"
Comma frequently occurs inside texts, and then awk fails. "Richard, Martin", "23 NS, North Coast, NY"
Comma frequently occurs inside texts, and then awk fails.That's apostrophe, quote, comma, space, end quote, apostrophe.
Will not work were numeric fields are not quoted.
But nice solution, nevertheless.
Name, Age, Address
"James aka ""Jim"", ""licensed"" attorney", 42, "New York"
That's three values: James aka "Jim", "licensed" attorney
42
New York
And there are other possible irregularities: zero or N spaces after the comma separators; unquoted values when they're not needed; backslash-escaped special characters; escaping newlines.