Find find . \! -name 'filename' -delete –> Finds the file named ‘filename’ and deletes all files in . directory except that one (because of its negation ‘\!’)
Title Useful Linux & Unix commands Find find . \! -name 'filename' -delete –> Finds the file named ‘filename’ and deletes all files in . directory except that one (because of its negation ‘\!’) Work type Article Tags blog, programming, personal, personal, blog
-------------------------
Registry info in Safe Creative
Identifier 1705272440705 Entry date May 27, 2017, 9:35 AM UTC License All rights reserved
-------------------------
Copyright registered declarations
Author. Holder Guillermo Bosch Bosch. Date May 27, 2017.
Information available at https://www.safecreative.org/work/1705272440705-useful-linux-unix-commands