tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY:file count
@ 2002-07-09 17:08 Paul Crittenden
  0 siblings, 0 replies; only message in thread
From: Paul Crittenden @ 2002-07-09 17:08 UTC (permalink / 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."



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-07-09 17:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-09 17:08 SUMMARY:file count Paul Crittenden

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