Categories
Linux

Get count of files in a Linux directory recursively

It is very simple:

for i in */ .*/ ; do
    echo -n $i": " ;
    (find "$i" -type f | wc -l) ;
done

Leave a Reply

Your email address will not be published. Required fields are marked *