Created
January 10, 2019 16:24
-
-
Save varnav/80d246d2cd0bbfd0fb9b3f35012393ed to your computer and use it in GitHub Desktop.
Delete old 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 | |
# Delete older than n days | |
find /var/spool/asterisk/monitor -mtime +75 -name '*.mp3' -delete | |
#Delete files smaller than n K | |
find /var/spool/asterisk/monitor -size -30k -name '*.mp3' -delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment