|
| From: | Kaz Kylheku (Coreutils) |
| Subject: | Re: null separated ls output option |
| Date: | Thu, 29 Jun 2017 10:17:16 -0700 |
| User-agent: | Roundcube Webmail/0.9.2 |
On 28.06.2017 23:31, Bernhard Voelker wrote:
[adding findutils]
First of all, find(1) is maintained in the GNU findutils project,
not in GNU coreutils.
Redirected from:
http://lists.gnu.org/archive/html/coreutils/2017-06/msg00049.html
On 06/28/2017 07:13 PM, Kaz Kylheku (Coreutils) wrote:
> [ snip ... my elaborate proposal for a find -sort predicate ]
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.
| [Prev in Thread] | Current Thread | [Next in Thread] |