gpt4 book ai didi

linux - linux shell中 "-newer $file"命令的 "find"选项是如何工作的?

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:19:17 25 4
gpt4 key购买 nike

我有以下 linux 命令。

find ${MOUNT_POINT} -type f -name "VM*" -newer $SENTFILE -print0 | xargs -0 -i cp {} ${TMP_DIR}

我很难理解选项 -newer $SENTFILE。谁能解释一下这个选项?

最佳答案

来自 man find:

-newer file
File was modified more recently than file. If file is a sym‐
bolic link and the -H option or the -L option is in effect, the
modification time of the file it points to is always used.

关于linux - linux shell中 "-newer $file"命令的 "find"选项是如何工作的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24927732/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com