Skip to content

Instantly share code, notes, and snippets.

@thespacedoctor
Created July 18, 2019 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thespacedoctor/c6059a86b4c72e4febf5b50cbb6c4264 to your computer and use it in GitHub Desktop.
Save thespacedoctor/c6059a86b4c72e4febf5b50cbb6c4264 to your computer and use it in GitHub Desktop.
[Recursive Directory File Counts] #bash #directory #folder #count
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