Skip to content

Instantly share code, notes, and snippets.

@zevlag
Created August 23, 2017 18:22
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 zevlag/6833832d807a91ea52efa66e7b1548aa to your computer and use it in GitHub Desktop.
Save zevlag/6833832d807a91ea52efa66e7b1548aa to your computer and use it in GitHub Desktop.
Count Files in directories recursively
for f in *; do [ -d ./"$f" ] && find ./"$f" -maxdepth 1 -exec echo \; | wc -l && echo $f; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment