X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AF3133857C74
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1631749831;
	bh=A+R0PxeBHk98y2cITqXxThN/4SxSjFPIIudyhSmpYag=;
	h=In-Reply-To:References:Date:Subject:To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
	 From;
	b=F79TONotLrbmUK9dBUaTG7pDxYyTjziSX/dlZHABPZt4a0+cUU1MYf+2iCtY+PvDH
	 4EYRVwN+TLhYOH0qXcSOzn/5eoblon4p6tlXPLz0I/fcNLuik0aUr3iSF5Mlo4Hvk1
	 4Q51tEYG5PRuFy+vGwUBbeODsfGBybKdI4w2AL3Y=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AFB0E3858C39
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:in-reply-to:references:from:date
 :message-id:subject:to:cc;
 bh=CpDz3N558NKEfcIec8Qhed2IeW9G3JMvOBjMCdTMSw0=;
 b=G0xg5cN2RBVsmo4AKLfHzhyTIjzvwxyE8oqI7R3glsajFb9anbdUVv7aaWC9X0fADT
 db/JiQvWwBTjHObmW2Q/aN0VLcd/Rb2uSGBb72ts0fypXEciU/kjnilF9es4suLBgzSO
 MXzFnN/xST7vnYlBec0qpglDgCICJbl49Ka03nxy+BDUxP0dl6QHch+LY31Gqf78CJ2t
 cXmXEurAOkeTi1qotN5YZg4gepPP48TQhCYZfi3CFQKRcB3tsVnAfOuI9WCxmSAulCDy
 KjU/+4jAZ5E3w7tQzV5u3DRvY7WoiUP7At/Z4hb+oyaRLXrRaoltLaQKbQhVkijcENKz
 Fd3A==
X-Gm-Message-State: AOAM532Fe1TZb8znnYF4TcILE4jcY+Niu3Y6z/y+5z/njmAbFLewlxTQ
 LTeJgSdzvmv9MJ/Hu85pRJNuSsOwvQtnV+ucXQoESoQq7eg=
X-Google-Smtp-Source: ABdhPJwK/h5k8vQAqCGCqTC6B/ipMkas9qBslYd5ofJpifSn9KJJq8fNtTShEsGG59zPO9WtO7PPfcyrhwXG01nFKUE=
X-Received: by 2002:ac8:7354:: with SMTP id q20mr2529147qtp.329.1631749762344; 
 Wed, 15 Sep 2021 16:49:22 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <CAC7Qdh0BE-Mm4QgXHgiejtxBUxwbWCZ0XoFd3Jd4U5b283JkCw@mail.gmail.com>
References: <CAC7Qdh0BE-Mm4QgXHgiejtxBUxwbWCZ0XoFd3Jd4U5b283JkCw@mail.gmail.com>
Date: Wed, 15 Sep 2021 19:49:21 -0400
Message-ID: <CAD8GWss_7aoegPWfrABajS3CCu0oQLsGOy3fijQA11rMnDeEYQ@mail.gmail.com>
Subject: Re: Previously-functional gawk script now failing to execute - PLEASE
 HELP!!!
To: Bryan VanSchouwen <vanschbm2@gmail.com>
X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT,
 FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
 TXREP autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Lee via Cygwin <cygwin@cygwin.com>
Reply-To: Lee <ler762@gmail.com>
Cc: cygwin@cygwin.com
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

On 9/15/21, Bryan VanSchouwen via Cygwin wrote:
> Hello.
>
> I just tried executing an old, previously-functional awk script using a
> version of gawk that I had downloaded last year, and a command of the
> following format (as recommended in a previous communication with the
> Cygwin mailing list):
> gawk -vRS="\r\n" -f data_collect_e_-_FF_4-state.awk
> but this time, the script failed to execute!!

The data file you attached doesn't have "\r\n" line endings:
$ file rpcg_FF_filtrd.txt
rpcg_FF_filtrd.txt: ASCII text

compare with one that does:
$ file test.txt
test.txt: ASCII text, with CRLF line terminators

<.. snip ..>
> What the heck is going on with this software, and is there a way to fix
> it?!

I don't use RS and start my awk scripts off with
  sub("\r$", "", $0)  # fix any \r\n line endings
so my scripts work with either flavor of line endings.

If you don't want to change your script try changing your input
  unix2dos <your text files>

Regards,
Lee

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
