От man find
:
-exec command {} +
This variant of the -exec option runs the specified command on
the selected files, but the command line is built by appending
each selected file name at the end; the total number of invoca-
tions of the command will be much less than the number of
matched files. The command line is built in much the same way
that xargs builds its command lines. Only one instance of '{}'
is allowed within the command. The command is executed in the
starting directory.
Таким образом, это назовет команду:
rm [filename1] [filename2] [...] [lastfilename]
Если существует больше файлов, чем может вписаться в список аргументов rm
будет назван несколько раз. (Это что xargs
делает.)
Без {} +
это просто звонило бы rm
набор времен без аргументов.
# end of hosts file
для проверки все записи вкладывают чтение. WOW! #fail – Pure.Krome 28 October 2010 в 01:42