Groups | Search | Server Info | Login | Register


Groups > comp.lang.awk > #9835

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

From Janis Papanagnou <janis_papanagnou+ng@hotmail.com>
Newsgroups comp.lang.awk
Subject Re: [gawk] Handling variants of CSV input data formats
Date 2024-08-27 18:23 +0200
Organization A noiseless patient Spider
Message-ID <vakuhv$326rs$1@dont-email.me> (permalink)
References (1 earlier) <vahop1$2eavu$1@dont-email.me> <vahttd$2f666$1@dont-email.me> <vaj7ps$2lph3$1@dont-email.me> <vajant$2m8em$1@dont-email.me> <vake8r$2vjon$1@dont-email.me>

Show all headers | View raw


On 27.08.2024 13:45, Ed Morton wrote:
> On 8/26/2024 8:39 PM, Janis Papanagnou wrote:
>>
>> I've missed that there was an explicit
>> $ export POSIXLY_CORRECT=1
>> set on the very top of these examples. Gee!
> 
> POSIXLY_CORRECT=1 (or equivalently `--posix` aka `-P`) affects numbers
> in the input your script reads (as shown in the previous post) and
> strings being converted to numbers in your code, it doesn't affect
> literal numbers in the source code for your script that awk reads.
> 
> In the source code the decimal separator for a literal number (as
> opposed to a string being converted to a number) is always `.`.
> 
> You can't use, say, a comma as the decimal separator in a literal number
> because a comma already means something in the awk syntax, e.g. `print
> 4,321` means the same as "print 4 OFS 321`.
> 
> [examples and explanations]

Thanks.

Janis

Back to comp.lang.awk | Previous | NextPrevious 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