determining the depth of directories
- From: paintedjazz@xxxxxxxxx
- Date: Sun, 10 Feb 2008 17:36:34 -0800 (PST)
Suppose I do:
for file in $(( find . -type d ))
What can I do at this point to determine the depth of each directory
that I encounter?
For example, suppose one result of the find is:
How can I determine that the depth is 4?
Thanks for any help.