[Date Prev ][Date Next ][Thread Prev ][Thread Next ][Date Index ][Thread Index ]
Re: fold: add the --characters option
From :
Pádraig Brady
Subject :
Re: fold: add the --characters option
Date :
Sun, 24 Aug 2025 19:19:22 +0100
User-agent :
Mozilla Thunderbird Beta
I don't think getline() is a generic enough interface,
especially for a utility used to introduce new lines.
Consider for example you want 80x10 lines of "y",
you could do this previously with:
$ yes | tr -d '\n' | fold -w 80 | head -n 10
While now fold will just consume all of memory.
Instead you might fread() to an IO_BUFSIZE buffer?
cheers,
Padraig
Re: fold: add the --characters option , (continued)
Re: fold: add the --characters option , Collin Funk , 2025/08/23
Re: fold: add the --characters option , Pádraig Brady , 2025/08/23
Re: fold: add the --characters option , Pádraig Brady , 2025/08/27
Re: fold: add the --characters option , Pádraig Brady , 2025/08/27
Re: fold: add the --characters option , Collin Funk , 2025/08/27
Re: fold: add the --characters option , Collin Funk , 2025/08/27
Re: fold: add the --characters option , Pádraig Brady , 2025/08/28
Re: fold: add the --characters option , Pádraig Brady , 2025/08/28
Re: fold: add the --characters option , Collin Funk , 2025/08/28
Re: fold: add the --characters option , Pádraig Brady , 2025/08/24
Re: fold: add the --characters option ,
Pádraig Brady <=
Re: fold: add the --characters option , Collin Funk , 2025/08/24
Re: fold: add the --characters option , Pádraig Brady , 2025/08/24
Re: fold: add the --characters option , Collin Funk , 2025/08/24
Re: fold: add the --characters option , Collin Funk , 2025/08/26
Re: fold: add the --characters option , Pádraig Brady , 2025/08/26
Re: fold: add the --characters option , Collin Funk , 2025/08/26