CCCPaste

BASH Count Files in Folders

#count the number of files in each folder and sort them from lest to most
find . -type f | awk -F\/ '{print $2}' | sort | uniq -c | sort -n | awk '{print $1 " " substr($0,index($0,$2))}'