Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nRPlo-0007lZ-6A for pgsql-sql@arkaria.postgresql.org; Tue, 08 Mar 2022 02:40:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nRPln-0004jC-3z for pgsql-sql@arkaria.postgresql.org; Tue, 08 Mar 2022 02:40:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nRPlm-0004j3-PG for pgsql-sql@lists.postgresql.org; Tue, 08 Mar 2022 02:40:14 +0000 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nRPlk-00080O-Le for pgsql-sql@lists.postgresql.org; Tue, 08 Mar 2022 02:40:14 +0000 Received: by mail-pl1-x62f.google.com with SMTP id s18so2558952plp.1 for ; Mon, 07 Mar 2022 18:40:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=yTZ5CX+HNegURf7T3ZXq1l9IfZCUmS8Tn2doMCxDVWU=; b=ZhQsDka0TgykzbKjn9e83JGW3Bov85ioKGg0hATP3bMLFIE03v+xj9JVdZ1tzNAx8o 6ERyTIeYDfwy8aEYucRu09l4+JligWJSK0uv9SnLsAu88yIZ4j1md+jsK7kgpxCU+jXj 6Iia7AYCmChFaYhiIfv62iiRaIC8WnHC05dFrlaHfkFPLAjXwLPVLL5yl0o7R3srfyiy QsezAn21BuWw1WlgDGei/NgU+4isOQluFBL99Wweys6JRn18qvgZQ3+qLiFoeahv3Y4X ZZ1N63Z8UP0y24HEwvwgpcfscSsj7jYySzG8wP+Dky6/AtWv4hHRE9dooManCSZ+EhVX RW2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=yTZ5CX+HNegURf7T3ZXq1l9IfZCUmS8Tn2doMCxDVWU=; b=rS5F3Fp7rUPyli+6uznIHShruEMBygpk++S/YvOC3zsmGMhKDKyla0Z6/eC0+zX0EW SMVY7xi9sR4nIXC0t9j3YffZkIMZA8qTjgcpsVWhFdclPf7ftX+CYwMS0/niapwKQYNx GcV7gkEzPJfqCdqaD4hAp9ep1Q9MO6cBcLR6/BBzrPgvnzzQyM77S/wAlM25aHjr1srD VZ1w+NmDbuufeKuxC9uoL67L1JwLyENpfzQ0pXKlBbyRMmSRLQAGnpKqSfZ4pKyZYycL WYIaG4P5K6csqeTZwehE61GgRROCAENkV3U0h2eYbd0WGmPsllvNXHt0mQZkwYiE6NcD +cgA== X-Gm-Message-State: AOAM5333Q5f76O/KLG4TYrJsGFWtKlSjDREH9L0nN1c0+KoXlNClTgQH Awr6e/vNmG8aHMa0m5doPp4= X-Google-Smtp-Source: ABdhPJz7lrm5jXOWEERi+k0zCKaIv4qpWdxz9/r+svhfXTDkvNWDp8SUsJkJKBdDlYxipipEbZ5b9A== X-Received: by 2002:a17:90b:388c:b0:1bf:4047:c7c6 with SMTP id mu12-20020a17090b388c00b001bf4047c7c6mr2316134pjb.24.1646707210659; Mon, 07 Mar 2022 18:40:10 -0800 (PST) Received: from [10.128.71.194] ([155.98.131.2]) by smtp.gmail.com with ESMTPSA id l5-20020a056a0016c500b004f140564a00sm18287491pfc.203.2022.03.07.18.40.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Mar 2022 18:40:09 -0800 (PST) Message-ID: <1101975f-ef74-3634-14c4-b7ee624139ea@gmail.com> Date: Mon, 7 Mar 2022 19:40:08 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: ERROR: extra data after last expected column Content-Language: en-CA To: Scott@BITSnBYTES.io, Steve Midgley Cc: pgsql-sql References: <775429fc5428ca2640f72f1d29f6e8ec90955e6c.camel@gmail.com> <354e10f466876aad50a77fa6fcb49206c29e678f.camel@gmail.com> From: Rob Sargent In-Reply-To: <354e10f466876aad50a77fa6fcb49206c29e678f.camel@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/7/22 18:51, Scott Macri wrote: > It looks like it might have something to do with the line length. All > the output from the AWK command are a continuation of the line above > it. There is no line break, however. I'm investigating now. > > > So I guess when I ran: > awk -F "|" '{if (NF != 25) print}' > the first time it was against the wrong file. I just tried again and > it produced a bunch of output. So this is telling me there are extra > '|' in those lines? > > -- Hacktorious Can't tell for sure but could be mac/dos/unix EOLN mixup. Some tools are better than others in dealing with a mixture of those.