Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Count all files and subfolder files within a folder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Count all files and subfolder files within a folder
Authored by: Trunkmonkey on Nov 09, '04 04:50:51PM

How about:

dyn-012:~/Movies sean$ find . | wc -l
98
dyn-012:~/Movies sean$

Just files:

dyn-012:~/Movies sean$ find . -type f | wc -l
94
dyn-012:~/Movies sean$

Just directories:

dyn-012:~/Movies sean$ find . -type d | wc -l
4
dyn-012:~/Movies sean$



[ Reply to This | # ]
Count all files and subfolder files within a folder
Authored by: joshewah on Nov 09, '04 05:03:24PM

was about to post this, guess im too slow!



[ Reply to This | # ]