SUMMARY:file count

From: Paul Crittenden <crittend_at_storm.simpson.edu>
Date: Tue, 09 Jul 2002 12:08:52 -0500

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_at_simpson.edu
Phone: (515)961-1680

"You don't have to attend every argument you're invited to."
Received on Tue Jul 09 2002 - 17:08:58 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:43 NZDT