Re: ERROR: extra data after last expected column

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: Scott(at)BITSnBYTES(dot)io, Steve Midgley <science(at)misuse(dot)org>
Cc: pgsql-sql <pgsql-sql(at)lists(dot)postgresql(dot)org>
Subject: Re: ERROR: extra data after last expected column
Date: 2022-03-08 02:40:08
Message-ID: 1101975f-ef74-3634-14c4-b7ee624139ea@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message scott macri 2022-03-08 03:47:23 Re: ERROR: extra data after last expected column
Previous Message Scott Macri 2022-03-08 01:51:06 Re: ERROR: extra data after last expected column

Browse pgsql-sql by date

  From Date Subject
Next Message scott macri 2022-03-08 03:47:23 Re: ERROR: extra data after last expected column
Previous Message Scott Macri 2022-03-08 01:51:06 Re: ERROR: extra data after last expected column