From owner-freebsd-questions Mon Dec 2 18:29:18 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 09C3637B401 for ; Mon, 2 Dec 2002 18:29:17 -0800 (PST) Received: from vectors.cx (manifold.vectors.cx [64.163.147.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95C2843EB2 for ; Mon, 2 Dec 2002 18:29:16 -0800 (PST) (envelope-from monkey@vectors.cx) Received: from vectors.cx (4dcd34ee909c2cfc400df659aa637346@localhost [127.0.0.1]) by vectors.cx (8.12.6/8.12.4) with ESMTP id gB32VXI8083328; Mon, 2 Dec 2002 18:31:33 -0800 (PST) (envelope-from monkey@vectors.cx) Received: (from monkey@localhost) by vectors.cx (8.12.6/8.12.6/Submit) id gB32VX4Z083327; Mon, 2 Dec 2002 18:31:33 -0800 (PST) (envelope-from monkey) Date: Mon, 2 Dec 2002 18:31:33 -0800 From: Adam Weinberger To: Peter Leftwich Cc: Doug Hardie , nkinkade@dsl-only.net, FreeBSD LIST Subject: Re: File Counts Message-ID: <20021203023133.GU60177@vectors.cx> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed Content-Disposition: inline In-Reply-To: X-Editor: Vim 6.1 http://www.vim.org X-Mailer: Mutt 1.5 http://www.mutt.org X-PGP-Key: http://www.vectors.cx/pgp.key.txt X-URL: http://www.vectors.cx http://www.crackula.com User-Agent: Mutt/1.5.1i 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 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >> (12.02.2002 @ 1826 PST): Peter Leftwich said, in 1.4K: << > 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. >> end of "Re: File Counts" from Peter Leftwich << Why, when it's so simple to just type out "find|wc -l"? Peter, UNIX would be ghastly if a new command were made for every simple thing anybody wanted to do. Instead of complaining about how FreeBSD doesn't have a command to do something, why not just make an alias? # Adam - -- Adam Weinberger vectors.cx >> adam@vectors.cx FreeBSD.org << adamw@FreeBSD.ORG Bayer Berkeley >> adam.weinberger.b@bayer.com #vim:set ts=8: 8-char tabs prevent tooth decay. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE97BeEo8KM2ULHQ/0RAtlDAKCxyVW/4et8Q/pTtvbcu1xbza/0UgCgl82D Gyed9I7MPL7H2+68mWkDNRo= =+65u -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message