home *** CD-ROM | disk | FTP | other *** search
-
-
-
- FIND ST-UNIX User's Manual FIND
-
-
-
- COMMAND
- find - find files recursivly
-
- FORMAT
- find pathname [pathename] ... expression
-
- DESCRIPTION
- _✓F_✓i_✓n_✓d recursively searches the _✓p_✓a_✓t_✓h_✓n_✓a_✓m_✓e looking for files
- that match the _✓e_✓x_✓p_✓r_✓e_✓s_✓s_✓i_✓o_✓n.
-
- OPTIONS
- -name filename
- if the _✓f_✓i_✓l_✓e_✓n_✓a_✓m_✓e matches the current pathname returns
- true.
-
- -type 'c'
- if the type of the file, _✓c, is 'd' (directory), 's'
- (special), 'w' (readonly), 'r' (writable),
-
- -size 'n'
- if the file is _✓n blocks (512 bytes) long, _✓r_✓e_✓t_✓u_✓r_✓n_✓s true.
-
- -time 'n'
- true if the file has been accessed in _✓n days.
-
- -mtime'n'
- if the date of the file is older than _✓n days, returns
- true (same as -time options).
-
- -exec 'command'
- _✓c_✓o_✓m_✓m_✓a_✓n_✓d is executed and it's exit status is returned.
- If '{}' is included in the command line then the
- current pathname is inserted in place.
-
- -ok command
- Same as -exec except that the command line is written
- to the screen and a prompt printed. The command is
- only executed on response of a 'y'.
-
- -print
- current pathname is printed. Always returns true.
-
- Expressions may be grouped using paranthesis. Negation of
- results is by preceeding command with '!'
-
- EXAMPLE
- To list all files in the directory and it's subdirectories:
-
- find -print
-
- To selectivly delete any files:
-
-
-
-
- Printed 10/April/1987 1 April 1987 1
-
-
-
-
-
-
- FIND ST-UNIX User's Manual FIND
-
-
-
- find -type r -ok rm {}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Printed 10/April/1987 1 April 1987 2
-
-
-
-