From owner-freebsd-questions Wed Sep 11 12:53:11 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0EA2B37B400 for ; Wed, 11 Sep 2002 12:53:10 -0700 (PDT) Received: from hotmail.com (f27.pav2.hotmail.com [64.4.37.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id C85B443E6A for ; Wed, 11 Sep 2002 12:53:09 -0700 (PDT) (envelope-from howcanthisbe300@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 11 Sep 2002 12:53:09 -0700 Received: from 217.224.7.49 by pv2fd.pav2.hotmail.msn.com with HTTP; Wed, 11 Sep 2002 19:53:09 GMT X-Originating-IP: [217.224.7.49] From: "How Can ThisBe" To: freebsd-questions@FreeBSD.ORG Subject: count files in a directory with ls? Date: Wed, 11 Sep 2002 19:53:09 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 11 Sep 2002 19:53:09.0702 (UTC) FILETIME=[DAB0DE60:01C259CC] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG How can I return the number of files in a directory? I was hoping for some kind of ls switch but did not find one. I did get excited about du -c but this returns a total of bytes, not files. Any ideas? I thought this would be have been something simple to find, I guess I may have just been looking in the wrong direction. _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message