1

I have two directories with multiple directories and files Lets say that directory A has some symbolic links to other directories and files and directory B is missing them. What can I do to copy those missing links to directory B recursively I am using unix

1

Try this:

for link in `find /path/to/A -type l`; do cp $link /path/to/B; done

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.