How to Count the Occurance of Each Distinct Filetype in a Directory
#!/bin/bash
find . -mindepth 2 -type f -not -path "*/.git/*" | awk -F. '{print $NF}' | sort | uniq -c
#!/bin/bash
find . -mindepth 2 -type f -not -path "*/.git/*" | awk -F. '{print $NF}' | sort | uniq -c