Created
July 4, 2022 23:18
-
-
Save DavidMetcalfe/c533505b24224566c15fa05f97eb0377 to your computer and use it in GitHub Desktop.
Prints the file count per directory for the current directory level
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Credit for script to Sebastian Piskorski on Stack Overflow: | |
# https://stackoverflow.com/a/39622947/563231 | |
du -a | cut -d/ -f2 | sort | uniq -c | sort -nr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment