I have a directory called CMS and under that directory I have multiple subdirctories each containing files. I need to count the files in the CMS directory and all of it's subdirectories. I usually acomplish this by downloading CMS to my Windows PC and using windows tools to do a file count, however this directory is now getting very large and this is a time consuming process.
Can anybody help me out with a UNIX command that will do the same?
I don't want a count of the directories just the files.
If you copy/paste this line into a linux command prompt, make sure the pipe symbol is a solid vertical line (not the broken vertical line webmasterworld changes it to when trying to post this message).