Thursday, February 23, 2012

Count the number of files in each directory recursively

find ./ -type d -exec sh -c "echo -n {} ' ' ; ls -l {} | wc -l" \;

No comments:

Post a Comment