在 Unix 服务器(Sun Solaris)上,ls -lrtR
我获得了路径中所有文件的列表及其子目录及其最后更新日期。
随着find . -type f -name "*.sas"
我在我的路径及其子目录中找到我的 .sas 文件列表,但没有属性。
是否可以在我的路径及其子目录中包含我的 .sas 文件列表及其最后更新日期?
我尝试find / -iname "*.sas"
了如何从任何目录中查找文件,但它给了我:
find: bad option -iname
find: [-H | -L] path-list predicate-list
find . -type f -name '*.sas'|xargs stat -f '%c %N'|sort
我从https://unix.stackexchange.com/a/320547/184179尝试过,但它给了我:
xargs: Could not exec command: No such file or directory
根据手册页
man find
,该-ls
选项可用于显示修改时间:因此,在您的情况下,该命令
find / -type f -name "*.sas" -ls
应输出如下内容: