From owner-freebsd-questions@FreeBSD.ORG Sat Nov 3 12:28:21 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 45A6716A421 for ; Sat, 3 Nov 2007 12:28:21 +0000 (UTC) (envelope-from pigskin_referee@yahoo.com) Received: from web34408.mail.mud.yahoo.com (web34408.mail.mud.yahoo.com [66.163.178.157]) by mx1.freebsd.org (Postfix) with SMTP id EA75613C4B5 for ; Sat, 3 Nov 2007 12:28:20 +0000 (UTC) (envelope-from pigskin_referee@yahoo.com) Received: (qmail 52236 invoked by uid 60001); 3 Nov 2007 12:27:06 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=1qZKN01RrpC5G39X8QC4Yekgo0okb5wneEZBI6GCnzSUL/j9IZ+OS/9lYJ4L4g4c+KJQ9ioHuFxVjpTRwnFnG6YkN0A+SD2xn7ECK7nazrrJgzmOlVVTsUzSRx6m8caO3cWgNmw9PfQ31TKdcK+By6kE+hv28oQcbSf5tMrxdbg=; X-YMail-OSG: mIiVf6sVM1lhRvnO_HuyqoGX_zHZpCweaxal1NCYgOTXFTZKyf3xATQyE0amsyCemHiToI.8Xixeyf_Vn9D1opLMKQ-- Received: from [67.189.206.211] by web34408.mail.mud.yahoo.com via HTTP; Sat, 03 Nov 2007 05:27:06 PDT X-Mailer: YahooMailRC/814.06 YahooMailWebService/0.7.152 Date: Sat, 3 Nov 2007 05:27:06 -0700 (PDT) From: White Hat To: FreeBSD Users Questions MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <538619.51984.qm@web34408.mail.mud.yahoo.com> Subject: Determining the number of files in a directory X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Nov 2007 12:28:21 -0000 This is probably a dumb question; however, I never let a little thing like that bother me in the past. Using FreeBSD-6.2 and Bash, how do I determine the number of files in a given directory? I have tried all sorts of combinations using different flags with the 'ls' command; however, none of them displays the number of files in the directory. Other than, by writing a script to accomplish this feat, how could I achieve my goal? Thanks! -- White Hat pigskin_referee@yahoo.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com