count all the files in a directory linux code example
Example: how to count all files on linux
for i in */ .*/ ; do
echo -n $i": " ;
(find "$i" -type f | wc -l) ;
done
for i in */ .*/ ; do
echo -n $i": " ;
(find "$i" -type f | wc -l) ;
done