Created
November 6, 2015 11:43
-
-
Save kireal/f160a58f536e3f7cc741 to your computer and use it in GitHub Desktop.
Clean CDH logs files
This file contains hidden or 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
#!/bin/sh | |
find /var/log/ -type f -mtime +3 -name "*log*" -delete | |
find /var/log/ -type f -mtime +3 -name "*log" -delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment