SUMMARY:file count

From: Paul Crittenden (crittend@storm.simpson.edu)
Date: Tue Jul 09 2002 - 13:08:52 EDT


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."



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:46 EDT