Skip to content

Instantly share code, notes, and snippets.

@xinthink
Created March 26, 2013 03:30
Show Gist options
  • Save xinthink/5242902 to your computer and use it in GitHub Desktop.
Save xinthink/5242902 to your computer and use it in GitHub Desktop.
Remove log files older than 30 days.
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