Last active
November 13, 2016 15:21
-
-
Save lavoiesl/11024316 to your computer and use it in GitHub Desktop.
list file types
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 | |
# | |
# @link https://gist.github.com/lavoiesl/11024316 | |
folder="${1:-.}" | |
find -E "$folder" -regex '.*/\.(git|svn)' -prune -o -type f -print \ | |
| grep -oiE '\.[a-z0-9_]+$' \ | |
| tr '[:upper:]' '[:lower:]' \ | |
| sort \ | |
| uniq -c \ | |
| sort -n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment