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
signature.asc
Description: OpenPGP digital signature
