
我需要递归列出目录中在特定日期之后修改的所有文件。这可能吗?
答案1
touch -t YYMMDDhhmm.SS /tmp/timestamp
find directory -type f -newer /tmp/timestamp
rm /tmp/timestamp
答案2
您可以使用find
...
touch –date "2012-11-07" /tmp/find_after
find / -newer /tmp/find_after
rm /tmp/find_after
答案3
可能你正在寻找这个:
find . -type f -mtime 1
上述命令将以递归方式显示当前目录中 1 天前修改的文件。