Getting all extensions for a directory: easy. Getting file counts for a particular extension: easy.
But getting all file extensions and their respective file counts is alluding me.
+ dir + abc.txt + def.txt + abc.pdf * def.pov
should return something like:
.txt 2 .pdf 1 .pov 1
The aim of this exercise is that I want to find out which file extension is popular in a certain directory.
Thanks in advance