pretty

Thursday, May 11, 2023

Count and sort by file extension in folder

One liner to count all files by extension in folders and subfolders.
find . -type f | sed 's/.*\.//' | sort | uniq -c | sort -nr