Re: File Count



On 2007-11-12, Chris F.A. Johnson <cfajohnson@xxxxxxxxx> wrote:
On 2007-11-12, M wrote:

Is there a command that will simply give me a count of files in a given
directory? ls lists them and du gives me size of directory. I just want a
count.

set -- *
count=$#

I almost forget to do "echo $count" and thought I had nothing.

;-)
.