Problem 5:Dave been asked to upgrade some legacy software to the new vendor supported version. As far as Dave can tell thus far, the software is for the most part the same, however the scribbled notes left by the old sysadmin tell him that there's a lot of custom scripts dumped in with the application itself. In order to save time, Dave has been instructed to merge the two directories to keep changes to the scripts to a minimum....Firstly, Dave moved the old application to /usr/local/foo-old and installed the new version in /usr/local/foo/. He now wishes to merge the two directories as follows:if a file is in /usr/local/foo-old/ but not in /usr/local/foo/ it should be copied to to /usr/local/foo/ and a log file should be kept to notify changes.the permissions on every file in /usr/local/foo-old/ should be the same as /usr/local/foo/He's a bit baffled as how to do this automatically though. Can you help him? |
|