tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Paul Crittenden <crittend@storm.simpson.edu>
Subject: SUMMARY:file count
Date: Tue, 09 Jul 2002 12:08:52 -0500	[thread overview]
Message-ID: <5.1.0.14.0.20020709120421.00a0b840@storm.simpson.edu> (raw)

Wow, I got around 30 replies in 10 minutes. What a great list.

The answer is: ls -l|wc -l  The ls -l lsits the files and the wc -l count 
the number of lines listed. You can use ls -R|wc -l to list all and count 
all sub directories.

find . -type f | wc -l was also suggested but I used the first one.

Thanks to all.

Original Question:
 >Is there any way to get a count on the number of files in a directory? I 
have >checked the archives and found nothing to help me.

Paul Crittenden
Computer System Manager
Simpson College
email: crittend@simpson.edu
Phone: (515)961-1680

"You don't have to attend every argument you're invited to."



                 reply	other threads:[~2002-07-09 17:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox