|
${CMD_FIND} ${STOREDIR} -name "*.bz2" -mtime +${DAYS} -type f -print | xargs -0 | egrep -v "\-${KEEP_DAY1}\-|\-${KEEP_DAY2}\-" | xargs ${CMD_RM} >/dev/null 2>&1 |
the egrep-regex also matches files from month "01" ... so not only the days "01" and "15" are kept, but all files from january.