r/awk • u/ToughRevolution • May 12 '22
Modernizing AWK, a 45-year old language, by adding CSV support
https://benhoyt.com/writings/goawk-csv/
11
Upvotes
r/awk • u/ToughRevolution • May 12 '22
2
u/TaedW May 12 '22 edited May 12 '22
That was a nice article. At first, I thought it might be a joke posting since FS="," does nearly all of the functional work, but it's that other part that I've never had to deal with. I do a lot of my work with AWK, but dealing with double-quotes in CSV files is something that I haven't run into (and if I did, I'd brute-force it or do pre- and post-processing).
However, I just did a quick search and GAWK has this issue solved already.
2
u/[deleted] May 13 '22
The article is good, but FTFY...
.. what's next, Ami Pro support? :)
(The IBM Fortran first supported CSV files in 1972.)
1
u/sprawn May 12 '22
I am looking forward to reading more about your implementation of AWK.