Delete files recursively with a specific extension
Posted in english, programming on Sep 10th, 2008
If you want to delete, for example, only .bak files throughout a directory tree you can try with the following command: $ find . -name *.bak -exec rm {} \; Using the same approach you can solve more complex problems. For example you can delete recursively all directories older than one week: $ find . [...]
