Skip to content

Instantly share code, notes, and snippets.

@qguv
Created December 7, 2014 06:39
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 qguv/aacd2510add91d0b8230 to your computer and use it in GitHub Desktop.
Save qguv/aacd2510add91d0b8230 to your computer and use it in GitHub Desktop.
get number of files in subdirectories of this one
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