ls_extensions

This function will display all file extensions (case-insensitive) and their count in the given directory ($PWD if not given) and its subdirectories.

Usage

$ ls_extensions
   5 sh
$ ls_extensions /tmp/example
   3 txt
   1 png
$ tree --noreport -a /tmp/example
/tmp/example
├── a.b.txt
├── a.txt
├── b.TXT
└── d
    ├── .ignored
    └── e.png