Challenge: Keep a mirror of a directory on unix
Example:
DIR 1: DIR 2:
1.jpg 1.jpg
2.jpg 2.jpg
3.jpg
I want a script/command/ whatever that will make DIR 2 have 3.jpg.
You may ask why not just rm dir 2, then cp dir 1 to wher DIR 2 lives. Answer: There are 100k files.
Thanks in advance.
Josh
Example:
DIR 1: DIR 2:
1.jpg 1.jpg
2.jpg 2.jpg
3.jpg
I want a script/command/ whatever that will make DIR 2 have 3.jpg.
You may ask why not just rm dir 2, then cp dir 1 to wher DIR 2 lives. Answer: There are 100k files.
Thanks in advance.
Josh