Find
find . \! -name 'filename' -delete
–> Finds the file named ‘filename’ and deletes all files in . directory except that one (because of its negation ‘\!’)
Find
find . \! -name 'filename' -delete
–> Finds the file named ‘filename’ and deletes all files in . directory except that one (because of its negation ‘\!’)