Re: Listing number of files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----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@xxxxxxxxxxxx                                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-----



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux