Delete files older than 30 days
This one will keep your temporary directories clean
-
#!/bin/bash
-
-
# deletes only files older than 30 days
-
find /path/to/tmpfolder/ -type f -mtime +30 | xargs rm
it recursively deletes files (not folders) older than 30 days
2 Comments
Dude… I do you make your code look like in textmate and still selectable…. So cool…
[...] you can put stuff which shouldn't last long on the internets. Mine gets deleted automatically after 14 days via cron. The automatic deletion was convenient enough, but with the new services menu in Snow [...]