From owner-freebsd-questions Mon Dec 2 11:40:16 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 CD56137B401 for ; Mon, 2 Dec 2002 11:40:15 -0800 (PST) Received: from c014.snv.cp.net (h001.c014.snv.cp.net [209.228.35.75]) by mx1.FreeBSD.org (Postfix) with SMTP id 41E6B43E4A for ; Mon, 2 Dec 2002 11:40:15 -0800 (PST) (envelope-from klimenta@futurebit.com) Received: (cpmta 4278 invoked from network); 2 Dec 2002 11:40:14 -0800 Received: from 12.33.76.83 (HELO bigbeat) by smtp.cswebmail.com (209.228.35.75) with SMTP; 2 Dec 2002 11:40:14 -0800 X-Sent: 2 Dec 2002 19:40:14 GMT Message-ID: <002301c29a3a$f38733e0$ca0110ac@vinyl.tkvbp.com> From: "Kliment Andreev" To: "Doug Hardie" , References: <7026DC6B-0622-11D7-B566-000393681B06@lafn.org> Subject: Re: File Counts Date: Mon, 2 Dec 2002 14:42:28 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-5" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 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 do I get a count of the files in directories? I need to be able to > get a listing of the number of files in a directory and counts for the > files in each sub-directory. % ls -l | wc -l (In a directory) % ls -lR | wc -l (Including sub-directories) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message