bug-coreutils
[Top][All Lists]
Advanced

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

bug#12675: find RFE test verb "-inodes"


From: Linda Walsh
Subject: bug#12675: find RFE test verb "-inodes"
Date: Thu, 18 Oct 2012 09:41:17 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.24) Gecko/20100228 Lightning/0.9 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666




A useful thing to be a test on the number of non-structural entries in a directory.

By non structural, it would work like ls -A, and not include entries that are
part of the directory structure like "." and ".." -- with the idea of being
able to quickly determine if a directory is empty.

Maybe 'inodes' with standard +/- adjectives

So "find . -type d -inodes 0" would find all the empty dirs.

Unless, of course this is already in there and I've missed it... but
didn't see anything that would provide this w/o calling an external func
on each dir...which really slows things down...








reply via email to

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