From owner-freebsd-questions Mon Dec 2 14:10:29 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 0D83F37B401 for ; Mon, 2 Dec 2002 14:10:28 -0800 (PST) Received: from ispsnet.net (smtp1.ispsnet.net [64.63.192.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3319743E88 for ; Mon, 2 Dec 2002 14:10:27 -0800 (PST) (envelope-from alanday@aaahawk.com) Received: from a ([209.245.96.103]) by ispsnet.net ; Mon, 02 Dec 2002 15:13:40 -0500 Message-ID: <008b01c29a3d$8398b1a0$7800000a@a> From: "Alan Day" To: "Kliment Andreev" , "Doug Hardie" , References: <7026DC6B-0622-11D7-B566-000393681B06@lafn.org> <002301c29a3a$f38733e0$ca0110ac@vinyl.tkvbp.com> Subject: Re: File Counts Date: Mon, 2 Dec 2002 15:00:49 -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 5.50.4920.2300 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4920.2300 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 $ find . -type file | wc -l ----- Original Message ----- From: "Kliment Andreev" To: "Doug Hardie" ; Sent: Monday, December 02, 2002 2:42 PM Subject: Re: File Counts > > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message