Last active
July 28, 2024 16:54
-
-
Save ILPlais/6d7e7fc3e83a082295bd82dcc1b46a9f to your computer and use it in GitHub Desktop.
Display the number of files by type in the current directory and it subdirectories
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
| #!/bin/bash | |
| find . -type f -exec file --mime-type --brief {} \; | sort | uniq --count | sort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment