- 论坛徽章:
- 3
|
本帖最后由 su8610 于 2015-07-27 14:28 编辑
-exec command ;
Execute command; true if 0 status is returned. All following
arguments to find are taken to be arguments to the command until
an argument consisting of ‘;’ is encountered. The string ‘{}’
is replaced by the current file name being processed everywhere
it occurs in the arguments to the command, not just in arguments
where it is alone, as in some versions of find. Both of these
constructions might need to be escaped (with a ‘\’) or quoted to
protect them from expansion by the shell.
不知道这段man能不能解释清楚,其实简单说就是{}代表前面find到的东西,然后;表示参数结束,然后\是来反义的
|
|