find |
Search objects in the Folder hierarchy
Accepts a top Folder from which doing the search as its first argument, and options as its other arguments:
--maxdepth n descend at most n levels --id xxxx objects which id matchs xxxx --type metatype objects which meta_type is metatype --owner xxxx objects owned by user xxxx --newer /other/object objects modified more recently than other --older /other/object objects modified less recently than other --mmin n objects modified less than n minutes ago --mtime n objects modified less than n days ago --exec cmd exec command for each object found you can use {} to match the current full object id and single or double quotes around the command itself.
e.g.:
find / --owner jerome --id "*_html" --maxdepth 2 --exec "addprop author/string {}"
Hint: You may use multiple --id, --type and --owner arguments and each can contain wildcards.
WARNING: You may very well become addicted to this command ;-)
|
|