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

book

Article ID: 157419

calendar_today

Updated On:

Products

Control Compliance Suite Exchange Control Compliance Suite Unix

Issue/Introduction

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. 

Query results lists all sub-directories. The find option as –prune or [email protected] 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. 

Resolution

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