Skip to content

egrep regex matches not only days, but also months #11

@stefangweichinger

Description

@stefangweichinger

${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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions