From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by sourceware.org (Postfix) with ESMTPS id AFB0E3858C39 for ; Wed, 15 Sep 2021 23:49:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AFB0E3858C39 Received: by mail-qt1-x835.google.com with SMTP id g11so4048654qtk.5 for ; Wed, 15 Sep 2021 16:49:22 -0700 (PDT) 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 Received: by 2002:ad4:5284:0:0:0:0:0 with HTTP; Wed, 15 Sep 2021 16:49:21 -0700 (PDT) In-Reply-To: References: From: Lee Date: Wed, 15 Sep 2021 19:49:21 -0400 Message-ID: Subject: Re: Previously-functional gawk script now failing to execute - PLEASE HELP!!! To: Bryan VanSchouwen Cc: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Sep 2021 23:49:23 -0000 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 Regards, Lee