cp -u is illegal on mac. What are the alternatives?
- by Barnabas Szabolcs
I have a MacbookPro Lion, and I have tried to archive my files that is tried to copy and overwrite if the source is newer than the destination. I tried the following command
cp -u source destination
but it says, -u is illegal. I also did not find --update or -u in the man cp.
Can you please help, what can I do in this situation?
[I have the question moved over here from SO, so feel free to answer it once more. I hope this is the right way of dealing with this]