Skip to content

Instantly share code, notes, and snippets.



Created Sep 14, 2012
What would you like to do?
Better, simpler rotation script
# Find files in a path older than X days (represented by +X), execute removal.
# removes files older than 1 week
find /path/to/files/* -mtime +7 -exec rm {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment