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