Maybe I’m dumb but I’ve never come up with a separator regex that is quite right.
FS = ","
awk -F ',' <program>
FPAT = "([^,]+)|(\"[^\"]+\")"
brew install gawk
good to go
:)
Is this not what you mean?
Edit: This comment might be helpful to you: https://news.ycombinator.com/item?id=22110036
It looks like FPAT from your linked article is for gawk. Gawk is great, but it's not everywhere. Still - it's good to know. Thanks!
Maybe I’m dumb but I’ve never come up with a separator regex that is quite right.