查找 Change > 的文件出生
是否可以找到 Change > > 的文件出生?
Stat somefile 显示已修改文件的修改时间
Access: 2022-02-24 17:07:45.562037727 +0000
Modify: 2022-02-24 17:07:26.682343514 +0000
Change: 2022-02-24 17:07:26.682343514 +0000
Birth: 2022-02-24 16:35:56.737147848 +0000
和未修改文件(复制的文件)的
Access: 2022-02-23 18:27:00.000000000 +0000
Modify: 2022-02-23 18:27:00.000000000 +0000
Change: 2022-02-24 15:57:29.334302184 +0000
Birth: 2022-02-24 15:57:29.334302184 +0000
修改时间是原始文件的时间戳,略小于将其复制到 docker 映像中的时间。
我只想查找
仅修改过的文件。
Is it possible to find files where Change > Birth?
Stat somefile shows this for a modifed file
Access: 2022-02-24 17:07:45.562037727 +0000
Modify: 2022-02-24 17:07:26.682343514 +0000
Change: 2022-02-24 17:07:26.682343514 +0000
Birth: 2022-02-24 16:35:56.737147848 +0000
and this for a non-modifed one (a copied file)
Access: 2022-02-23 18:27:00.000000000 +0000
Modify: 2022-02-23 18:27:00.000000000 +0000
Change: 2022-02-24 15:57:29.334302184 +0000
Birth: 2022-02-24 15:57:29.334302184 +0000
The modification time is the timestamp of the orginal file, a little less than the time it was copied into a docker image.
I'd like to find
only the modified files.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是 bash 中的一个小脚本,用于查找
change "path1" >诞生“path2”
。以下脚本草图假设
change,birth
具有值。Here is a little script in bash, to find if
change "path1" > birth "path2"
.The following sketch for a script assumes that
change, birth
have values.假设您创建了 6 个文件,等待一秒钟,然后再次触摸其中 3 个来更新其
mtime
:您可以使用
ruby
找到已修改的文件:或者使用 Bash:
要么打印:
Suppose you create six files, wait a sec then touch 3 of them again to update their
mtime
:You can find the files that have been modified with
ruby
:Or with Bash:
Either prints: