remove all files except two linux code example
Example 1: delete all the files without one in linux
# delete all except the filename
$ rm -v !("filename")
Example 2: linux remove all files same extension in directory
find . -type f -iname \*.zip -delete