


      FFFFIIIINNNNDDDD((((1111))))                     ((((UUUUNNNNIIIIXXXX 5555....0000))))                    FFFFIIIINNNNDDDD((((1111))))



      NNNNAAAAMMMMEEEE
           find - find files

      SSSSYYYYNNNNTTTTAAAAXXXX
           ffffiiiinnnndddd path-name-list  expression

      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
           _F_i_n_d recursively descends the directory hierarchy for each
           path name in the _p_a_t_h-_n_a_m_e-_l_i_s_t (i.e., one or more path
           names) seeking files that match a boolean _e_x_p_r_e_s_s_i_o_n written
           in the primaries given below.  In the descriptions, the
           argument _n is used as a decimal integer where ++++_n means more
           than _n, ----_n means less than _n and _n means exactly _n.

           ----nnnnaaaammmmeeee _f_i_l_e      True if _f_i_l_e matches the current file name.
                           Normal shell argument syntax may be used if
                           escaped (watch out for [[[[, ???? and ****).

           ----ppppeeeerrrrmmmm _o_n_u_m      True if the file permission flags exactly
                           match the octal number _o_n_u_m (see _c_h_m_o_d(1)).
                           If _o_n_u_m is prefixed by a minus sign, more
                           flag bits (017777, see _s_t_a_t(2)) become
                           significant and the flags are compared:

                     (flags&onum)==onum


           ----ttttyyyyppppeeee _c         True if the type of the file is _c, where _c
                           is bbbb, cccc, dddd, pppp, or ffff for block special file,
                           character special file, directory, or plain
                           file.

           ----lllliiiinnnnkkkkssss _n        True if the file has _n links.

           ----uuuusssseeeerrrr _u_n_a_m_e     True if the file belongs to the user _u_n_a_m_e.
                           If _u_n_a_m_e is numeric and does not appear as a
                           login name in the ////eeeettttcccc////ppppaaaasssssssswwwwdddd file, it is
                           taken as a user ID.

           ----ggggrrrroooouuuupppp _g_n_a_m_e    True if the file belongs to the group _g_n_a_m_e.
                           If _g_n_a_m_e is numeric and does not appear in
                           the ////eeeettttcccc////ggggrrrroooouuuupppp file, it is taken as a group
                           ID.

           ----ssssiiiizzzzeeee _n         True if the file is _n blocks long (1024
                           bytes per block).  Block count = (((actual
                           size in bytes)+4095)/4096)*4

           ----aaaattttiiiimmmmeeee _n        True if the file has been accessed in _n
                           days.

           ----mmmmttttiiiimmmmeeee _n        True if the file has been modified in _n



      Page 1                                                   (9010-E)






      FFFFIIIINNNNDDDD((((1111))))                     ((((UUUUNNNNIIIIXXXX 5555....0000))))                    FFFFIIIINNNNDDDD((((1111))))



                           days.

           ----ccccttttiiiimmmmeeee _n        True if a file has been changed in _n days.

           ----eeeexxxxeeeecccc _c_m_d       True if the executed _c_m_d returns a zero
                           value as exit status.  The end of _c_m_d must
                           be punctuated by an escaped semicolon.  A
                           command argument {{{{}}}} is replaced by the
                           current path name.

           ----ooookkkk _c_m_d         Like ----eeeexxxxeeeecccc except that the generated command
                           line is printed with a question mark first,
                           and is executed only if the user responds by
                           typing yyyy.

           ----pppprrrriiiinnnntttt          Always true; causes the current path name to
                           be printed.

           ----ccccppppiiiioooo _d_e_v_i_c_e    Write the current file on _d_e_v_i_c_e in _c_p_i_o(4)
                           format (5120 byte records).

           ----nnnneeeewwwweeeerrrr _f_i_l_e     True if the current file has been modified
                           more recently than the argument _f_i_l_e.

           (((( _e_x_p_r_e_s_s_i_o_n ))))  True if the parenthesized expression is true
                           (parentheses are special to the shell and
                           must be escaped).

           The primaries may be combined using the following operators
           (in order of decreasing precedence):

           1)  The negation of a primary (!!!!  is the unary _n_o_t
               operator).

           2)  Concatenation of primaries (the _a_n_d operation is implied
               by the juxtaposition of two primaries).

           3)  Alternation of primaries (----oooo is the _o_r operator).

      EEEEXXXXAAAAMMMMPPPPLLLLEEEE
           To obtain the pathname of file ddddoooogggg whose location is not
           known:

           find / -name dog -print

           To find all files ending with ....eeee:

           find / -name '*.e' -print

           To remove all files named aaaa....oooouuuutttt or ****....oooo that have not been
           accessed for 7 days:




      Page 2                                                   (9010-E)






      FFFFIIIINNNNDDDD((((1111))))                     ((((UUUUNNNNIIIIXXXX 5555....0000))))                    FFFFIIIINNNNDDDD((((1111))))



           find  /  \( -name a.out -o -name '*.o' \) -atime +7 -exec rm
           {} \;

      FFFFIIIILLLLEEEESSSS
           /etc/passwd, /etc/group

      SSSSEEEEEEEE AAAALLLLSSSSOOOO
           cpio(1), sh(1), test(1), stat(2), cpio(4).















































      Page 3                                                   (9010-E)



