[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dir command



Hi William,

On 7/15/07, William Pursell <bill.pursell@gmail.com> wrote:

For the total number of files:
$ find . -type f | wc -l

For the total number of directories:
$ find . -type d | wc -l

To get sizes, du is the obvious choice, but you
could do the ridiculous:
$ find . -type f -exec cat {} \; | wc -c


Thanks for explaining. I did not know of this option of find.

Manon.
 



Reply to: