-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, Jun 09, 2004 at 06:42:55PM +0100, Dylan Parry wrote: > I know it's possible to list the number of files in a directory on the > command line, but it is possible to recursively list the number of files > in a directory and all it's child directories? > > ...for example, I could find out exactly how many OGG files I have in total :) Something like: $ find . -type f -iname \*.ogg | wc -l I'm sure others will have a dozen different incantations, but this works for me. Specifying "-type f" ensures you're only counting files, not directories. - -- Matt Brodeur RHCE MBrodeur@NextTime.com http://www.NextTime.com An effective way to deal with predators is to taste terrible. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAx05Ic8/WFSz+GKMRAryKAJ0R2Xt/WIEIyAFJPW6Wbrz8VNvNkgCeNkSk OSfRnJwUX0XIj7sbpKw9f8o= =T0vE -----END PGP SIGNATURE-----