Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. find /path/to/files* -mtime +10 -exec rm {} ;
  2.  
  3. find /path/to/files -type f -mtime +10 -delete
  4.  
  5. # delete *.tmp files
  6. find . -type f -name '*.tmp' -delete
  7.  
  8. # delete ALL files
  9. find . -type f -name '*.tmp' -delete
  10.  
  11. $ find -type f
  12.  
  13. tmpreaper -t 5d ~/Downloads
  14.  
  15.  
  16. tmpreaper --protect '*.c' -t 5h ~/my_prg
  17.  
  18. find /path/to/files* -type f -mtime +10 -exec rm '{}' '+'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement