News for hackers. Stuff that matters.
Re:Understanding Awk by nickcw on Thursday September 30, 2021 @02:18PM (#28709358)
There is an answer to CSV mode a bit further down the page

https://news.ycombinator.com/item?id=28708145

...but if your files are CSV, there is a CSV extension for gawk

    @include "csv"
    BEGIN { CSVMODE = 1 }
Re:Understanding Awk by jrumbut on Thursday September 30, 2021 @02:30PM (#28709513)
Well there you go, for the sake of my pride at least it's an extension.

It's funny searches for awk CSV seem to yield a bunch of SO questions where the answers are increasingly cumbersome regexes instead of this extension.

Of course, you can't count of this extension being widely installed, but it's great for my own desktop.

Re:Understanding Awk by nmz on Thursday September 30, 2021 @03:31PM (#28710321)
that's because the extension only works in gawk. its not portable anywhere else.