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

Mike Hebel rescue at sunhelp.org
Thu Dec 7 15:37:55 CST 2000


Actually Jon Katz gave me the same answer without the -type and -print on it
but thanks!

Mike Hebel

-----Original Message-----
From: rescue-admin at sunhelp.org [mailto:rescue-admin at sunhelp.org]On
Behalf Of Dave Reader
Sent: Thursday, December 07, 2000 3:35 PM
To: Rescue at Sunhelp. Org
Subject: Re: [SunRescue] Ok...newbie question...




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.

_______________________________________________
Rescue maillist  -  Rescue at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/rescue




More information about the rescue mailing list