Count file types by extension

February 17, 2023

Retrieve a list of all files, by extension, and display a count of them.

find . -type f -name '*.*' -not -name '.*' | sed -Ee 's,.*/.+\.([^/]+)$,\1,' | sort | uniq -ci | sort -n