0

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 .

2 Answers 2

4

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 \; 
Sign up to request clarification or add additional context in comments.

Comments

1

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 \;

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.