Thanks for the many answers and methods guys.  Actually Tanner's "find"
recipes worked the best for what I needed the command for.  The ls and
ll commands did count the top two . and ..

Thanks again to all who contributed 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Dan Monjar
Sent: Friday, August 01, 2003 11:27 AM
To: [EMAIL PROTECTED]
Subject: Re: [TriLUG] file and directory count

--On Friday, August 01, 2003 11:10:08 AM -0400 Ken Mink 
<[EMAIL PROTECTED]> wrote:

> Another big problem with doing it with 'ls' is that it won't get dot
> files. If you don't get the dot files in /home, your count will be WAY
> off. If you use 'ls -a', you'll get '.' and '..'. You'll have to
> remember to subtract 2 from the count.
> The find command is the way to go.

or you could use 'ls -A' to not get '.' and '..'...

ls has way too many options.

--
Daniel Monjar
IS Manager, Technical Services
bioM�rieux, Inc.
Durham, NC US

--
TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ  : http://trilug.org/faq/
TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
TriLUG PGP Keyring         : http://trilug.org/~chrish/trilug.asc

Reply via email to