find : search for files
The find commands allows you to search for files based on
specified properties
(a filter for the file system)
- searches an entire directory tree, testing each file for the required property.
- takes some action for all "matching" files
(usually just print the file name)
Invocation:
find StartDirectory Tests Actions
|
where
- the Tests examine file properties like name, type, modification date
- the Actions can be simply to print the name or execute an arbitrary command on the matched file
|