Feed on
Posts
Comments

Tag Archive 'shell commands'

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 . -mtime +7 -type [...]

Read Full Post »

Creative Commons Attribution 3.0 Unported
Creative Commons Attribution 3.0 Unported