[ACCEPTED]-Solution to error 'find: missing argument to -exec' with find -exec cp {} TARGET_DIR +-cp
Accepted answer
As mentioned in the opening post, the solution 2 I found is:
$ find ./ -name "*JIM*" -exec cp --target-directory=$TARGET_DIR {} +
Where --target-directory=
could also be replaced 1 with -t
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.