[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: null separated ls output option

From: Bernhard Voelker
Subject: Re: null separated ls output option
Date: Thu, 29 Jun 2017 19:25:49 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0

On 06/29/2017 07:17 PM, Kaz Kylheku (Coreutils) wrote:
> On 28.06.2017 23:31, Bernhard Voelker wrote:
>> I think the GNU toolbox already gives you enough flexibility to support
>> these edgy use cases, e.g. sorting by file size:
>>   find . -printf "%s/%p\0" \
>>     | sort -zt '/' -k1,1n  \
>>     | sed -z 's,^.*/,,'
> That is great. So there is nothing do here, basically; all the better.
> No null-terminated patch for ls is required; GNU sort can sort the
> specially formatted null-terminated output from find.
> See; it pays to have a discussion about the requirements
> before whipping up code.

Thanks, maybe I can find a nice place in find.1 or find.texi
to add such an example ... wait - there is already a similar

yet that doesn't work with arbitrary file names.
I have to think about it.

Have a nice day,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]