Count the number of files in each subdirectory

find . -maxdepth 1 -type d | while read i; do echo "`find \"$i\" -type f | wc -l` $i"; done | sort -g


This page is powered by Blogger. Isn't yours?