Re: how can I use du,find,grep&wc -l to find the number of subdirectories & files(including hidden)?



On 2008-03-27, George <> wrote:
du | grep ./ | wc -l to find the no. of subdirectories, how about find the

find -type d|wc -l

And also files?

find -type f|wc -l

See find manpage for all available options on -type and other
possibilities.

--
Take
.