4 ms·
There is an answer to CSV mode a bit further down the page https://news.ycombinator.com/item?id=28708145 https://news.ycombinator.com/item?id=28708145 ...but
by nickcw 5y ago
There is an answer to CSV mode a bit further down the page
https://news.ycombinator.com/item?id=28708145 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 }
- jrumbut 5y agoWell 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.
- nmz 5y agothat's because the extension only works in gawk. its not portable anywhere else.