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

Re: (General Question) how to count how many files in a directory tree



On Sun, May 16, 2004 at 07:52:25PM +0100, Craig Tinson wrote:
> Quick question for you smart bods out there
> 
> I know that "ls -1 | wc -l" will tell me how many files there are in the 
> current directory..
> 
> how would I go about finding out how many files there are in the current 
> directory *and* it's sub directories?

find . -type f | wc -l

Regards,
Luciano Rocha



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