You want to find ladies inmates looking for men. GNU find continuously stats files through the processing of the command line itself, before any searching has begun. You may as well use the environment variable LOCATE_PATH to set the record of database recordsdata to look. To disregard a directory and the recordsdata under it, use -prune; see an instance in the description of -path.
If the named file is the truth is a symbolic link, and the -P option is in effect (or if neither -H nor -L had been specified), the data used for the comparison shall be taken from the properties of the symbolic link. The default action is to -print all recordsdata for which the expression is true.
This variant of the -exec action runs the required command on the chosen recordsdata, but the command line is built by appending each selected file identify at the finish; the total variety of invocations of the command will be much lower than the number of matched recordsdata.
There is no method to search one part of the filesystem with this selection on and a part of it with this feature off, although. If you’re using discover in a script or in a scenario the place the matched information might have arbitrary names, it’s best to consider using -print0 as a substitute of -print.
The principal programs used for making lists of recordsdata that match given criteria and working commands on them are discover, locate, and xargs. You should use those commands as further filters to pick out information. This also applies to files or directories whose names are given on the command line.