Created
March 26, 2013 03:30
-
-
Save xinthink/5242902 to your computer and use it in GitHub Desktop.
Remove log files older than 30 days.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find logs -name "*.log" -mtime 30 -exec rm {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment