在linux中列出具有绝对路径递归的文件

Sto*_*lan 7 linux bash

这个问题非常类似于如何在linux中列出其绝对路径的文件?

我想获取修改了绝对路径和日期的文件或文件夹的名称.

这个命令差不多了:

ls -lR /foo/bar | awk '{print $6,$7,$8,$9}'
Run Code Online (Sandbox Code Playgroud)

但它并没有表现出绝对的道路.

关心Stollan

gho*_*g74 12

查看find命令及其printf选项.

find /foo/bar -printf "%p %A@"
Run Code Online (Sandbox Code Playgroud)

有关find更多信息,请参见手册页.

  • `find/directory -name"hello"-type f -print -exec date -r {} +%Y /%D:%H:%M \;`另一种方式,不会给它答​​案因为你的好. (2认同)