Created
July 18, 2019 08:27
-
-
Save thespacedoctor/c6059a86b4c72e4febf5b50cbb6c4264 to your computer and use it in GitHub Desktop.
[Recursive Directory File Counts] #bash #directory #folder #count
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
find . -maxdepth 5 -mindepth 2 -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