What's the +
in find /path/ -exec command '{}' +
do? as opposed to find /path/ -exec command '{}' \;
Find Command – What Does the ‘+’ Do in ‘find /path/ -exec command ‘{}’ +’?
find
find
What's the +
in find /path/ -exec command '{}' +
do? as opposed to find /path/ -exec command '{}' \;
Best Answer
The '+' makes one big command line out of all found files to minimize the number of commands to be run.
Given the case that a find command finds four files.
would produce
On the other hand
produces