Last active
April 14, 2017 11:53
-
-
Save marcolabreu/5b9ce9c2747a534ea0c88cf1f968b040 to your computer and use it in GitHub Desktop.
Reports the total file count for all directories in the current directory
This file contains 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
#! /bin/sh | |
for dir in $(find . -maxdepth 1 -type d); do | |
echo "${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