Maxdepth option in find does not work for Solaris 10 hosts to limit subdirectories to search in.

Article:TECH200414  |  Created: 2012-12-03  |  Updated: 2012-12-03  |  Article URL http://www.symantec.com/docs/TECH200414
Article Type
Technical Solution

Product(s)


Issue



The find command on several Unix platforms has an option called maxdepth which can be used to limit the number of directories find will look into.

The Solaris find command does not include the maxdepth option and does not support the maxdepth option.  This is a limitation of Solaris and not CCS. 


Error



Query results lists all sub-directories. The find option as –prune or -maxdepth@sp1 did not change the results.


Cause



The Solaris find command does not include the maxdepth option and does not support the maxdepth option.  This is a limitation of Solaris and not CCS. 


Solution



unable to use maxdepth option to limit subdirectories to search in.




Article URL http://www.symantec.com/docs/TECH200414


Terms of use for this information are found in Legal Notices