Created
December 7, 2014 06:39
-
-
Save qguv/aacd2510add91d0b8230 to your computer and use it in GitHub Desktop.
get number of files in subdirectories of this one
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -maxdepth 1 -mindepth 1 -type d | while read dir; do | |
printf "%-25.25s : " "$dir" | |
find "$dir" -type f | wc -l | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment