coreutils
[Top][All Lists]
Advanced

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

Re: Possible enhancement: file count


From: Eric Blake
Subject: Re: Possible enhancement: file count
Date: Mon, 29 Feb 2016 08:48:16 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

On 02/29/2016 08:23 AM, Fernando Pereira wrote:

> Anyway, I was looking for the most efficient way to do that and I couldn't
> find  satisfying answer. Of course we can use find | wc, but I am really
> looking for a simple and efficient solution just like du exists for the
> file size.

But 'find | wc' IS efficient, and already exists on every machine,
whereas a new method would only be available on machines updated to the
latest-and-greatest.  Pipelines are cheap; I don't see any benefit to
bloating tools with a new option when existing options work well.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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