2009-04-07 13:33:01 -0000, Stephane Chazelas: [...] > Maybe a better way to write it: > > cd /var/crash && > find . ! -name . -prune \( -type f -mtime +7 -o -size 0 \) -exec rm -f {} + [...]
Sorry, misplaced braces above:
find . ! -name . -prune -type f \( -mtime +7 -o -size 0 \) -exec rm -f {} +
Best regards, Stephane
2009-04-07 13:33:01 -0000, Stephane Chazelas:
[...]
> Maybe a better way to write it:
>
> cd /var/crash &&
> find . ! -name . -prune \( -type f -mtime +7 -o -size 0 \) -exec rm -f {} +
[...]
Sorry, misplaced braces above:
find . ! -name . -prune -type f \( -mtime +7 -o -size 0 \) -exec rm -f {} +
Best regards,
Stephane