in reply to Re: Counting the Extensions of the Directoryin thread Counting the Extensions of the Directory
perl -e 'while(<*>){if(-f && /\.(\w+)$/){$e{$1}++}}print "$_ -> $e{$_} +\n" for keys %e' [download]