Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Dec 2002 18:31:33 -0800
From:      Adam Weinberger <adamw@FreeBSD.ORG>
To:        Peter Leftwich <Hostmaster@Video2Video.Com>
Cc:        Doug Hardie <bc979@lafn.org>, nkinkade@dsl-only.net, FreeBSD LIST <freebsd-questions@FreeBSD.ORG>
Subject:   Re: File Counts
Message-ID:  <20021203023133.GU60177@vectors.cx>
In-Reply-To: <Pine.BSF.4.50.0212022124070.85843-100000@earl-grey.cloud9.net>
References:  <C21B13C8-0652-11D7-B566-000393681B06@lafn.org> <Pine.BSF.4.50.0212022124070.85843-100000@earl-grey.cloud9.net>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021203023133.GU60177>