Find

From The Linux Source
Jump to: navigation, search

Cleanup/remove files older than 14 days

# find /path/dir -daystart -mtime +14 -type f -delete

Find/change dir perms (or execute a command based on find)

# find /path/dir -type d -exec chmod g+rxs '{}'\;