Surely it would be more concise to use find's modification or creation time functions:
find DIRECTORY -type f -and \( -size 0 -or -mtime +7 \) -exec rm {} \;
This will remove only files (not directories) that are older than 7 days
Surely it would be more concise to use find's modification or creation time functions:
This will remove only files (not directories) that are older than 7 days