[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] A CSV Standard
From: |
Aharon Robbins |
Subject: |
Re: [bug-gawk] A CSV Standard |
Date: |
Thu, 04 Dec 2014 22:14:15 +0200 |
User-agent: |
Heirloom mailx 12.5 6/20/10 |
Hello All.
Sorry for the delays in replying.
On Tue, Nov 18, 2014 at 10:38:10PM -0000, David Jordan wrote:
> I would be happy to volunteer to write it as I have been wanting to
> contribute to a free software project for a while and it seems a simple
> enough task (always dangerous to say).
David, that would be great. To do this fully correctly, we'd need an
input parser to find the real end of the record - that is skipping over
newlines that are embedded in double quotes, and then, *I think*, an FPAT
based solution might could handle the field splitting.
If not, I would suggest a csvsplit() function that took $0 and filled
in an array with the fields.
> Do you think it would be better off standalone or as part of gawketxtlib?
As part of gawkextlib, please. This is easier now, as Andy pointed out.
Andy - about JSON, I'm not an expert, but it looks like it could be
easily modelled as a gawk multidimensional array, no?
Thanks!
Arnold
- Re: [bug-gawk] A CSV Standard,
Aharon Robbins <=