Created
October 25, 2018 07:45
-
-
Save wayou/39d1224b76f490890b1f08500d739361 to your computer and use it in GitHub Desktop.
pirnt file number for each extension and the total file number
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
# with git: | |
git ls-files | wc -l | awk '{$1=$1;print $1 " total"}';git ls-files| sed 's/.*\.//' | sort | uniq -c | sort -r|awk '{$1=$1;print}' | |
# without git | |
find . -type f | wc -l | awk '{$1=$1;print $1 " total"}'; find . -type f | sed 's/.*\.//' | sort | uniq -c | sort -r|awk '{$1=$1;print}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sample result: