LinuxMay 7, 20141 min read Delete all files in a folder which don’t match file extensions find . -type f ! -name "*.jpg" ! -name "*.JPG" -delete