[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gsort problem (TAKE 2)
From: |
Jim Meyering |
Subject: |
Re: gsort problem (TAKE 2) |
Date: |
Fri, 09 Jun 2006 08:05:08 +0200 |
Paul Eggert <address@hidden> wrote:
...
>> (gdb) print merge_buffer_size
>> $1 = 185835729
>
> Wow. That is a huge number. It indicates that there is at least one
> line of text in your file that is 185 MB long. Or, that there is a
> bug in 'sort' or in your compiler or debugger or whatnot.
>
> Can you check all the lines in your file again? Something like this
> should do it:
>
> gawk '{if (maxlen < length) maxlen = length} END { print maxlen}' bigfile.txt
Or this:
wc --max-line-length bigfile.txt
aka
wc -L bigfile.txt