LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Simulating mindepth, maxdepth in find (https://www.linuxquestions.org/questions/programming-9/simulating-mindepth-maxdepth-in-find-311927/)

subu_s 04-11-2005 04:07 AM

Simulating mindepth, maxdepth in find
 
Hi,
I want to run a find command to access files at a specific depth.
In linux, I use find . -mindepth <n> -maxdepth <n> "*"

However the command does not work in Unixware. Is it possible to use
-exec or some other method so that I get results similat ro what i get with mindepth, maxdepth?

Thanks and Regards,
Subu

bigearsbilly 04-11-2005 05:38 AM

how about something like:


Code:

find    */*/  */*/*/  */*/*/*/  -prune
not very neat though, I know.


All times are GMT -5. The time now is 05:10 AM.