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 ))
do
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:
./openwin/lib/X11/fonts
How can I determine that the depth is 4?
Thanks for any help.
.
- Follow-Ups:
- Re: determining the depth of directories
- From: Javi
- Re: determining the depth of directories
- From: Stephane Chazelas
- Re: determining the depth of directories
- From: Icarus Sparry
- Re: determining the depth of directories
- Prev by Date: Alternative to gnuplot
- Next by Date: Re: determining the depth of directories
- Previous by thread: Alternative to gnuplot
- Next by thread: Re: determining the depth of directories
- Index(es):