Skip to content

Instantly share code, notes, and snippets.

@ucarion
Created August 6, 2013 23:11
Show Gist options
  • Save ucarion/6169693 to your computer and use it in GitHub Desktop.
Save ucarion/6169693 to your computer and use it in GitHub Desktop.
Count number of files in each subdirectory from '.'
for dir in */
do
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