4 ms·
I think the main thing Awk is missing is standard support for CSV (with quoting). The recent goawk has it, though.
by gpvos 4y ago
I think the main thing Awk is missing is standard support for CSV (with quoting). The recent goawk has it, though.
- tyingq 4y agoMany (most?) Linux distros that have gawk also ship gawkextlib, which includes gawk-csv. https://gawkextlib.sourceforge.net/csv/gawk-csv.html https://gawkextlib.sourceforge.net/csv/gawk-csv.html
- gpvos 4y agoThanks, I didn't know about that. For oneliners a simple command-line option would be preferable though.
- b5n 4y agoYou can get pretty far with FPAT, and as mentioned elsewhere, gawkextlib is available when FPAT doesn't quite cut it.
- benhoyt 4y agoThanks for the plug (I'm the author of GoAWK). Yeah, I'm hoping the CSV feature will really be useful for data science and the like. There are so many CSVs pushed around these days. See more here: https://benhoyt.com/writings/goawk-csv/ https://benhoyt.com/writings/goawk-csv/
- asicsp 4y agohttps://github.com/ezrosent/frawk https://github.com/ezrosent/frawk also supports csv And handling it with awk: https://stackoverflow.com/questions/45420535/whats-the-most-robust-way-to-efficiently-parse-csv-using-awk https://stackoverflow.com/questions/45420535/whats-the-most-...