Pages

Linux command count number of files per folder

Count number of files per folder with this command:

# find * -maxdepth 0 -type d -exec sh -c "echo -n {} ' ' ; ls -lR {} | wc -l" \;

1 comment: