Follow-up Comment #8, bug #14619 (project findutils):

Might I suggest the following documentation approach for the man and info
pages:

-perm mode: exact match of set and unset bits in symbolic or numeric mode;
includes symbolic modes with leading '+' but not with leading '-'

-perm -mode: match all set bits (and ignore other bits) in symbolic or
numeric mode

-perm /mode: match any set bits (and ignore other bits) in symbolic or
numeric mode

-perm +mode: match any set bits (and ignore other bits) in numeric mode (use
/mode for symbolic)

Then include an example showing how to find a file that has all three read
bits, at least one write bit, and no execute bits, in both numeric and
symbolic representation:

find . -perm -444 -perm +222 \! -perm /111
find . -perm -a+r -perm /a+w \! -perm /a+x


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=14619>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-findutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-findutils

Reply via email to