3 ms·
The main problem with that is awk breaks down as soon as you have comma in your csv's data. There is frawk if you want to process csv with awk.
by tym0 4y ago
The main problem with that is awk breaks down as soon as you have comma in your csv's data. There is frawk if you want to process csv with awk.
- antegamisou 4y agoApparently FPAT declaration resolves this https://stackoverflow.com/a/43478468 https://stackoverflow.com/a/43478468
- b5n 4y agoFPAT will get you pretty far, for instances where FPAT doesn't quite cut it gawk-csv is included in gawkextlib.
- sargstuff 4y agoold school programmer thoughts on 'work around commas in cvs data using awk/gawk programming language': Instead of using awk/gawk straight up/out of the box, can code/program awk/gawk or use non-awk/gawk stuff to convert to different format to work around issue. [edit this when have simple working example: edit1: one non-awk/gawk way to avoid the cvs comma issue would be to use jq to convert column data to different format. ]
- forgotpwd16 4y agoGoAWK also has a CSV/TSV reading mode.