Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Does Unix join have a limit on the number of lines?

1 view
Skip to first unread message

Robert Peirce

unread,
Jan 30, 2021, 12:28:57 PM1/30/21
to
I just discovered a join command I have been using for years stopped
working on 11/27. The command is

join -a1 ~/daily/Input ~/weekly/Input

What I am trying to do is join the date matched daily and weekly lines
but include all the daily lines. The data exists to date but the join
stops at 11/27.

The file structures haven't change. Nothing has changed as far as I can
tell. The output includes all the daily lines but doesn't include any
of the weekly lines after 11/27. I have no idea why.

Robert Peirce

unread,
Jan 30, 2021, 12:48:08 PM1/30/21
to
As a test I tried tailing the last ten lines from each file and joining
them. That worked. I also tried deleting the first couple of hundred
lines from the two files. That didn't work. Odd.

Robert Peirce

unread,
Jan 30, 2021, 2:14:38 PM1/30/21
to
On 1/30/21 12:48 PM, Robert Peirce wrote:

I found the problem. The sort field is yyyy/mm/dd. It turns out in the
early part of December, 2020, I had entered 2021! I had to do a
detailed search of every day since the end of November in both files but
I found it.

0 new messages