1 2 3 4 5 6 7 8 9 10
#!/bin/sh # # Remove scriptherder data older than 7 days. # DIR="/var/cache/scriptherder/" test -d ${DIR} || exit 0 find ${DIR} -type f -mtime +7 -print0 | xargs -0 rm -f