Date: Wed, 4 Dec 2002 20:29:12 +0100 From: Cliff Sarginson <cls@raggedclown.net> To: FreeBSD LIST <freebsd-questions@FreeBSD.ORG> Subject: Re: File Counts Message-ID: <20021204192912.GA3305@raggedclown.net> In-Reply-To: <20021203151444.GC5819@gothmog.gr> References: <C21B13C8-0652-11D7-B566-000393681B06@lafn.org> <Pine.BSF.4.50.0212022124070.85843-100000@earl-grey.cloud9.net> <20021203151444.GC5819@gothmog.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Dec 03, 2002 at 05:14:44PM +0200, Giorgos Keramidas wrote: > On 2002-12-02 21:26, Peter Leftwich <Hostmaster@Video2Video.Com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021204192912.GA3305>