[SunRescue] Ok...newbie question...

Dave Reader rescue at sunhelp.org
Thu Dec 7 15:35:06 CST 2000


On Thu, 7 Dec 2000, Mike Hebel wrote:

> How do you get the number of files in a given directory?  I can get the
> total size, individual size, date, time, etc. but not how many files there
> are.  Does this show up anywhere easily?

how about:

	find ./any/directory/i_want -type f -print | wc -l

there's probably a better way, but that springs to mind as i had a
different reason for finding files today ;)

d.




More information about the rescue mailing list