Groups | Search | Server Info | Login | Register


Groups > comp.lang.awk > #9828

Re: [gawk] Handling variants of CSV input data formats

From Manuel Collado <mcollado2011@gmail.com>
Newsgroups comp.lang.awk
Subject Re: [gawk] Handling variants of CSV input data formats
Date 2024-08-26 19:01 +0200
Organization A noiseless patient Spider
Message-ID <ed42d44f-902e-40c1-956f-a3d5c215682c@gmail.com> (permalink)
References <vaeh9m$1pfge$1@dont-email.me> <vahop1$2eavu$1@dont-email.me> <vahttd$2f666$1@dont-email.me>

Show all headers | View raw


El 26/8/24 a las 14:54, Janis Papanagnou escribió:
> 
> My opinion on this is that I wouldn't expect GNU Awk to become a (yet
> another) CSV-processor. It's very convenient to have an easy input of
> CSV data to be processed like other tabular data with Awk. So removal
> of the (outer) quotes, transforming "inner" quotes of fields according
> to the CSV-standard(s), and handling the escape symbol, would serve my
> expectations. (I don't need CSV-output formatting, but I understand if
> there is such a demand.)

Perhaps you could try my gawk-csvio pure gawk library. Just include a 
first unconditional rule calling csvimport(...) and the CSV input data 
will be automatically converted to a regular OFS-delimited record ready 
to be processed.

Please find the library at http://mcollado.z15.es/gawk-extras/. The 
documentation is available also to be read before downloading.

HTH

Back to comp.lang.awk | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

[gawk] Handling variants of CSV input data formats Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-08-25 08:00 +0200
  Re: [gawk] Handling variants of CSV input data formats Ed Morton <mortonspam@gmail.com> - 2024-08-26 06:26 -0500
    Re: [gawk] Handling variants of CSV input data formats Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-08-26 14:54 +0200
      Re: [gawk] Handling variants of CSV input data formats Manuel Collado <mcollado2011@gmail.com> - 2024-08-26 19:01 +0200
        Re: [gawk] Handling variants of CSV input data formats Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-08-27 02:31 +0200
          Re: [gawk] Handling variants of CSV input data formats Manuel Collado <mcollado2011@gmail.com> - 2024-08-27 12:20 +0200
            Re: [gawk] Handling variants of CSV input data formats Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-08-27 18:19 +0200
      Re: [gawk] Handling variants of CSV input data formats Ed Morton <mortonspam@gmail.com> - 2024-08-26 19:49 -0500
        Re: [gawk] Handling variants of CSV input data formats Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-08-27 03:39 +0200
          Re: [gawk] Handling variants of CSV input data formats Ed Morton <mortonspam@gmail.com> - 2024-08-27 06:45 -0500
            Re: [gawk] Handling variants of CSV input data formats Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-08-27 18:23 +0200

csiph-web