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 example: https://www.gnu.org/software/findutils/manual/html_node/find_html/Updating-A-Timestamp-File.html#Updating-A-Timestamp-File yet that doesn't work with arbitrary file names. I have to think about it. Have a nice day, Berny