Blog Archives

Delete all the files not matching pattern with find and grep

In this article I will show you how to remove all the files that do not match a certain pattern, with grep and find, combined with grep: As an example, I will remove all the files not containing the string

Tagged with: , , , ,
Posted in The Linux and Unix Articles!


Subscribe to get the latest Linux news and how to guides directly on your e-mail!