I decided to convert a few file systems on a HP-UX box from hfs-format
to vxfs-format, and at the same time rename the disks and rearrange
the directories between them.
While moving the directories accross disks, I goofed the file
modification times by using just 'cpio -pdx' (no '-m' option). I
don't know what I was thinking. Two many balls in the air at the same
time, I'd suppose.
Now, I could restore all the directories from backup tapes, but it
would feel safer and also be easier to have a way to just fix the file
timestamps, because the directories do not reside under the same mount
points anymore, and especially because the users have of course
started updating the files.
So, does anyone have or know about a script which can compare the
contents of two directory trees, say A and B, and set the timestamps
of files in A to those of the respective files in B, if the file
contents are identical ?
Or does an old man need to see the true light, re-focus his
aspirations, and strive to become _a perl hacker_ ?
-Tapio.