Computing.Net > Forums > Unix > find command - korn shell

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

find command - korn shell

Reply to Message Icon

Name: palmac
Date: September 16, 2003 at 02:43:09 Pacific
OS: Solaris
CPU/Ram: sparc
Comment:

Hi,
Anyone knows how to use the 'find' command using a specified depth level within the directoy hierarchy?
for instance:
find * -type f -name

this will search including all subdirectories, is there a way to specify the level of depth used?
Thank you




Sponsored Link
Ads by Google

Response Number 1
Name: Nails
Date: September 16, 2003 at 19:26:29 Pacific
Reply:

Hi:

The GNU version of find supports maxdepths. From the Red Hat 7.1 man page:

-maxdepth levels
Descend at most levels (a non-negative integer) levels of directories
below the command line arguments. `-maxdepth 0' means only apply the
tests and actions to the command line arguments.

Regards,

Nails


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: find command - korn shell

Help with korn shell www.computing.net/answers/unix/help-with-korn-shell/5837.html

kill command in Korn shell www.computing.net/answers/unix/kill-command-in-korn-shell/5708.html

korn shell help please www.computing.net/answers/unix/korn-shell-help-please/4364.html