Skip to content

Instantly share code, notes, and snippets.

@wimleers
Created July 27, 2011 14:45
Show Gist options
  • Save wimleers/1109502 to your computer and use it in GitHub Desktop.
Save wimleers/1109502 to your computer and use it in GitHub Desktop.
# Delete all log files older than 100 days that are not Episodes log files.
find /data/logs/apache -not \( -name "*episodes*" \) -mtime +100 -exec /bin/rm -f {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment