Unix/Linux Go Back    


Shell Programming and Scripting Unix shell scripting - KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and shell scripts and shell scripting languages here.

Understanding find -depth

Shell Programming and Scripting


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 01-20-2013
zulfi123786 zulfi123786 is offline
Registered User
 
Join Date: Jan 2012
Last Activity: 2 April 2015, 6:29 AM EDT
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Understanding find -depth

I was looking at a code and stumbled over the option -depth of find command

After searching what -depth does I found the below:


Code:
 -depth Process each directory's contents before the directory itself.

Does it mean the sub directories are processed before the current directory in the search operation ?

Please help in understanding

Thanks
Sponsored Links
    #2  
Old Unix and Linux 01-20-2013
Don Cragun's Unix or Linux Image
Don Cragun Don Cragun is offline Forum Staff  
Moderator
 
Join Date: Jul 2012
Last Activity: 6 July 2015, 11:23 PM EDT
Location: San Jose, CA, USA
Posts: 6,668
Thanks: 282
Thanked 2,225 Times in 1,906 Posts
Check out the wikipedia article tree traversal and look for generic tree and note the difference between depth-first and breadth-first searches.
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
cmd find: exclude directory when using option -depth bora99 UNIX for Dummies Questions & Answers 3 03-15-2012 12:10 PM
Understanding 'find' command sears Shell Programming and Scripting 2 10-29-2010 12:14 AM
find depth using ftw germallon Programming 2 06-17-2008 10:58 AM
Controlling depth with find la_womn Shell Programming and Scripting 12 05-21-2008 02:20 AM
mq queue depth Satyak Shell Programming and Scripting 0 02-13-2008 04:28 AM



All times are GMT -4. The time now is 12:39 AM.