我想运行一个每晚的 cron 作业,删除一个文件夹中一周或更长时间没有访问过的所有文件。在 bash 中执行此操作的最有效方法是什么?
cron shell-script date files
cron ×1
date ×1
files ×1
shell-script ×1