Solaris find command- ignore subdirectories
Posted on 2008-06-11
I am looking for a simple script to do some cleanup on directories older than n days. As part of that script, I need to do a find on directories within my pwd. However, I only want the top level directories returned, not subdirectories.
For instance, give the following:
I only want my find command to return mydir and yourdir
Again, this is on solaris, so I don't have maxdepth.