如果我做
find . -exec echo {} +
Run Code Online (Sandbox Code Playgroud)
它在一行中打印所有路径,即命令echo
只执行一次。
但据man find
,
Run Code Online (Sandbox Code Playgroud)-exec command {} + ... the number of invocations of the command will be much less than the number of matched files. ...
似乎在某些情况下命令会被执行多次。我对吗?请举例说明。
find ×1