facelordgists
8/22/2019 - 6:13 PM

Count of files in each sub-directory

# Count of files in each sub-directory
find . -maxdepth 1 -mindepth 1 -type d -exec sh -c 'echo "$(find "{}" -type f | wc -l)" {}' \; | sort -nr

## Output example
# 1128 ./wordpress-seo
# 676 ./wp-ses
# 618 ./css-javascript-toolbox
# 423 ./gravityforms
# 394 ./wp-usertrack