我知道unix的find命令有这个选项:
find -version
GNU find version 4.1
-newer file Compares the modification date of the found file with that of
the file given. This matches if someone has modified the found
file more recently than file.
Run Code Online (Sandbox Code Playgroud)
是否有一个选项可以让我找到比某个文件更旧的文件.我想删除目录中的所有文件进行清理.因此,我会发现所有文件都超过N天的替代方案也可以完成这项工作.