Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I am trying to run this on shell
find . -name 'node_modules' -exec cp -ra --parents \{\} /home/project/xwa/packages/custom
and i am getting find: missing argument to -exec'` , kindly help me .
find: missing argument to
You forgot the ; argument (which needs to be escaped to prevent the shell from treating it as a shell command terminator).
;
find . -name 'node_modules' \ -exec cp -ra --parents \{\} /home/project/xwa/packages/custom \;
Add a comment
Try using:
find . -name 'node_modules' -exec cp -ra --parents {} /home/project/xwa/packages/custom \;
You don't need to escape the curly brackets and you terminate it with \;
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.