> find <folder name> -type f -name "*[Ss]mall*" -exec rm {} \; This would delete all Files with Small or small in the filenames. I want to delete image files [png,jpg,bmp] only not music files with small in their names too Thanks