Skip to content

Instantly share code, notes, and snippets.

@ryanbrink
Created April 3, 2014 13:00
Show Gist options
  • Save ryanbrink/9953841 to your computer and use it in GitHub Desktop.
Save ryanbrink/9953841 to your computer and use it in GitHub Desktop.
Quick rotated log file cleanup script
#!/bin/bash
cd /var/log
find ./ -type f -name \*.*.1 -exec rm {} \; -o -name \*.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment