FreeBSD calls them 'flags' rather than 'attributes', and supports
searching for them with a '-flags' predicate.  Quoting from find(1) on
FreeBSD 7.2:

     -flags [-|+]flags,notflags
             The flags are specified using symbolic names (see chflags(1)).
             Those with the "no" prefix (except "nodump") are said to be
             notflags.  Flags in flags are checked to be set, and flags in
             notflags are checked to be not set.  Note that this is
different
             from -perm, which only allows the user to specify mode bits
that
             are set.

             If flags are preceded by a dash (``-''), this primary evaluates
             to true if at least all of the bits in flags and none of
the bits
             in notflags are set in the file's flags bits.  If flags are
pre-
             ceded by a plus (``+''), this primary evaluates to true if
any of
             the bits in flags is set in the file's flags bits, or any
of the
             bits in notflags is not set in the file's flags bits. 
Otherwise,
             this primary evaluates to true if the bits in flags exactly
match
             the file's flags bits, and none of the flags bits match
those of
             notflags.

- Michael

-- 
mouse, n: A device for pointing at the xterm in which you want to type.
Confused by the strange files?  I cryptographically sign my messages.
For more information see <http://www.elehack.net/resources/gpg>.


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to