GNU Info

Info Node: (find.info)Classifying Files

(find.info)Classifying Files


Prev: Fixing Permissions Up: Common Tasks
Enter node , (file) or (file)node

Classifying Files
=================

   If you want to classify a set of files into several groups based on
different criteria, you can use the comma operator to perform multiple
independent tests on the files.  Here is an example:

     find / -type d \( -perm -o=w -fprint allwrite , \
       -perm -o=x -fprint allexec \)
     
     echo "Directories that can be written to by everyone:"
     cat allwrite
     echo ""
     echo "Directories with search permissions for everyone:"
     cat allexec

   `find' has only to make one scan through the directory tree (which
is one of the most time consuming parts of its work).


automatically generated by info2www version 1.2.2.9