Recursively counting files in a Linux directory
find . -maxdepth 1 -type d -print0 | xargs -0 -I {} sh -c 'echo $(find "{}" | wc -l) "{}"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment