相关疑难解决方法(0)

什么时候会找到。-exec COMMAND {} +` 多次执行 COMMAND?

如果我做

find . -exec echo {} +
Run Code Online (Sandbox Code Playgroud)

它在一行中打印所有路径,即命令echo只执行一次。

但据man find

-exec command {} +
    ... the number of invocations of the command will 
be much  less  than  the  number  of matched files. ...
Run Code Online (Sandbox Code Playgroud)

似乎在某些情况下命令会被执行多次。我对吗?请举例说明。

find

9
推荐指数
2
解决办法
4400
查看次数

标签 统计

find ×1