Question: what is the difference between exec and xargs in unix?
Answer: When you use -exec to do the work you run a separate instance of the called program for each element of input. So if find comes up with 10,000 results, you run exec 10,000 times. With xargs , you build up the input into bundles and run them through the command as few times as possible, which is often just once.