Last active
February 5, 2020 09:52
-
-
Save steerpike/af8952d83992fe207e5dfb52361c39c5 to your computer and use it in GitHub Desktop.
Count the number of filetypes '.txt' occuring in a folder
This file contains 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
find a/ -type f -name "*.txt" | wc -l | |
also | |
find . -type f | sed 's/.*\.//' | sort | uniq -c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment