Linux rm *extension
This command can be used to remove all the files ending with same extensions like .pdf, .txt, .odt, .png, etc.
Here, we are removing two directories having same extension '.txt'. Let's have a look.
As you can see both the directories 'demo.txt' and 'Demo.txt' have been deleted. You can remove as many files as you want having same extensions.