Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save venuktan/77569fbac31ebfd69b89b187bc6b419b to your computer and use it in GitHub Desktop.
Save venuktan/77569fbac31ebfd69b89b187bc6b419b to your computer and use it in GitHub Desktop.
linux list number of files in each subdirectory
find -type d -readable -exec sh -c 'printf "%s " "$1"; ls -1UA "$1" | wc -l' sh {} ';'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment