Skip to content

Instantly share code, notes, and snippets.

@napsternxg
Created September 6, 2012 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save napsternxg/3660130 to your computer and use it in GitHub Desktop.
Save napsternxg/3660130 to your computer and use it in GitHub Desktop.
Count all file types in a directory recursively
find ./ -type f | grep -E ".*\.[a-zA-Z0-9]*$" | sed -e 's/.*\(\.[a-zA-Z0-9]*\)$/\1/' | sort | uniq -c | sort -n | tee filetype1.list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment