[英]finding files that were modified before a certain file
您好,我正在尝试编写一个Unix代码,该代码将查找在特定条件之前已修改的所有文件
文件。
到目前为止,
find [directory] -type f -mtime date -r [certain_file]
但系统返回错误提示
find: invalid argument `date' to `-mtime'
我试图将其写成一行,但是我似乎无法找出一种指定时间戳的方法
[certain_file]。
我该如何表达
-mtime {date -r [certain_file]}?
尝试否定find
的-newer
条件。
find [directory] -type f \! -newer [certain_file]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.