From owner-freebsd-questions Wed Dec 4 11:30:25 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 1ABB537B401 for ; Wed, 4 Dec 2002 11:30:24 -0800 (PST) Received: from post-20.mail.nl.demon.net (post-20.mail.nl.demon.net [194.159.73.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0573D43EC2 for ; Wed, 4 Dec 2002 11:30:23 -0800 (PST) (envelope-from cls@raggedclown.net) Received: from [212.238.197.102] (helo=mailhost.raggedclown.net) by post-20.mail.nl.demon.net with esmtp (Exim 3.36 #1) id 18JfDx-000Arb-00 for freebsd-questions@FreeBSD.ORG; Wed, 04 Dec 2002 19:30:21 +0000 Received: from localhost (localhost [127.0.0.1]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [dawn]) with ESMTP id 15C95DA9 for ; Wed, 4 Dec 2002 20:30:21 +0100 (CET) Received: from willow.raggedclown.net (willow.raggedclown.intra [192.168.1.10]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [dawn]) with ESMTP id 23F95DDC for ; Wed, 4 Dec 2002 20:29:12 +0100 (CET) Received: by willow.raggedclown.net (Ragged Clown Host [willow], from userid 1009) id 8C5BC225CC; Wed, 4 Dec 2002 20:29:12 +0100 (CET) Date: Wed, 4 Dec 2002 20:29:12 +0100 From: Cliff Sarginson To: FreeBSD LIST Subject: Re: File Counts Message-ID: <20021204192912.GA3305@raggedclown.net> References: <20021203151444.GC5819@gothmog.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021203151444.GC5819@gothmog.gr> User-Agent: Mutt/1.5.1i X-Virus-Scanned: by AMaViS 0.3.12pre8 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 On Tue, Dec 03, 2002 at 05:14:44PM +0200, Giorgos Keramidas wrote: > On 2002-12-02 21:26, Peter Leftwich wrote: > > On Mon, 2 Dec 2002, Doug Hardie wrote: > > > Thanks to all who responded. The approach below does just what I needed. > > > > Here's another way I don't see listed: > > > > $ find . -type f | wc -l > > > > This means "find, starting right here, all files here and in subdirectories > > - then pipe the output through word count just the lines." > > > > You'd think FreeBSD would have a command similar to ls, df, du or a flag to > > the find command such as "-countitems" or something. > > Nah. The Unix way of doing things is to avoid implementing > "everything" in one, huge, monolithic tool and relying instead on the > user to find creative ways to make many small tools work together. > Absolutely. Of course the most creative ignoring of this rule is Perl :) -- Regards Cliff Sarginson The Netherlands [ This mail has been checked as virus-free ] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message