CarLaTeX Asked: 2019-10-23 01:52:57 +0800 CST2019-10-23 01:52:57 +0800 CST 2019-10-23 01:52:57 +0800 CST 早于特定日期的文件列表(包括子文件夹中的文件) 772 在 Unix 服务器 (Solaris) 上,我希望有一个文件列表,如输出ls -lrtR(即文件夹的所有文件,包括子文件夹中的文件,以及它们的路径和日期的指示),但只列出早于特定日期的文件(例如 < 2017)。 files 1 个回答 Voted Best Answer binarym 2019-10-23T02:00:02+08:002019-10-23T02:00:02+08:00 find您的 Solaris 服务器上是否提供实用程序? 如果是这样,那么只需使用find <path> -mtime +365 -lsorfind <path> -mtime +365 -exec ls <options of your choice> {} \;来查找超过 365 天的文件。
find
您的 Solaris 服务器上是否提供实用程序?如果是这样,那么只需使用
find <path> -mtime +365 -ls
orfind <path> -mtime +365 -exec ls <options of your choice> {} \;
来查找超过 365 天的文件。