Summary: how to set maxdepth with sun find?

From: Bill Shorter (jwillie@fast.net)
Date: Mon Oct 09 2000 - 19:36:52 CDT


Thanks to the folks who responded to my question:

From: "Bageshwar X Kumar" <kumar_bageshwar@jpmorgan.com>
From: "Jonathon W. Ross" <dnsops@isa.net.au>
From: Brad Young <byoung@splitrock.net>
From: "Jason K. Schechner" <jas@cais.com>

Hope I didn't forget anyone.

Sounds like gnu find may be the best way to deal with this
problem. Apparently gnu find has a -maxdepth option.

Brad provided an interesting solution for looking 1 or 2
layers deep with solaris find:

For examining the current directory:
find . ! -name . -prune -print

... and for examining the directories beneath the current
directory:
find ./.??*/.??* ./*/* ./.??*/* ./*/.??* ! -name . -prune -print

Here's the original question:

On Thu, 31 Aug 2000, Martin Meadows wrote:

>
> Can someone tell me how to set the maximum depth of directories
> searched with the solaris find command? I'm interested in
> searching for files in all directories one level below my
> current directory.
>
> Thanks,
> Martin Meadows
> Indianapolis, In.

S
U BEFORE POSTING please READ the FAQ located at
N ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/faq
. and the list POLICY statement located at
M ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/policy
A To submit questions/summaries to this list send your email message to:
N sun-managers@ececs.uc.edu
A To unsubscribe from this list please send an email message to:
G majordomo@sunmanagers.ececs.uc.edu
E and in the BODY type:
R unsubscribe sun-managers
S Or
. unsubscribe sun-managers original@subscription.address
L To view an archive of this list please visit:
I http://www.latech.edu/sunman.html
S
T

S
U BEFORE POSTING please READ the FAQ located at
N ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/faq
. and the list POLICY statement located at
M ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/policy
A To submit questions/summaries to this list send your email message to:
N sun-managers@sunmanagers.ececs.uc.edu
A To unsubscribe from this list please send an email message to:
G majordomo@sunmanagers.ececs.uc.edu
E and in the BODY type:
R unsubscribe sun-managers
S Or
. unsubscribe sun-managers original@subscription.address
L To view an archive of this list please visit:
I http://www.latech.edu/sunman.html
S
T



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:19 CDT