Created
July 6, 2017 22:14
-
-
Save charrismatic/925ce87f0de674f1f1eb118a9300cdd8 to your computer and use it in GitHub Desktop.
Bash Functions
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
# COUNT FILES IN SUB DIRECTORIES | |
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