How to find different files in UNIX based extension. Lets say suppose if I have 100 files for each vamsi.log-vamsi100.log, krishna.txt-krishna100.txt, super.csv..., rajat.jpeg..., kiran.xml-kiran100.xml and etc. My requirement is if I give command it'd only give how many different patterns do I have in one folder. It should also deliver one for each extension. How can I achieve this?
ls -ltr gives all files. But I need to know how many different type of files there in one folder?