Listing number of files

Jenkins, Jeremiah jeremiah.jenkins at neustar.biz
Wed Jun 9 18:04:18 UTC 2004


I'm wondering if it's not counting directories....

the find command after I saw that was like duh, much easier....

if you have time, just for giggles, try ll -R|grep ogg |wc -l and see if
that reports the same number as the find commands.

Jeremiah

-----Original Message-----
From: Dylan Parry [mailto:me at dylanparry.com]
Sent: Wednesday, June 09, 2004 2:00 PM
To: For users of Fedora Core releases
Subject: Re: Listing number of files


On Wed, 9 Jun 2004 13:52:08 -0400, Matt Brodeur  
<mbrodeur+rhlp at NextTime.com> wrote:

>> ...for example, I could find out exactly how many OGG files I have in  
>> total :)
>
>    Something like:
> $ find . -type f -iname \*.ogg  | wc -l

Thanks, this does the job nicely. Jeremiah: your solution, although giving  
me a figure, seems to me a little out so I'm not exactly sure what else it  
is counting... :)

-- 
Dylan Parry
http://www.webpageworkshop.co.uk - FREE Web tutorials and references


-- 
fedora-list mailing list
fedora-list at redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list





More information about the fedora-list mailing list