I have two folders A and B that contain files and other folders (no links though). B has a bit more up to date conent (extra files, modified files etc). However, B has wrong file modification dates (touch-ed).

I need to restore the date for each file in such way:

  • in case the file in A is equal (by its contents) to B, use A's date also in B
  • in case the file is not the same, do not change B's date

Any ideas?

link|improve this question
which operating system you are using please? – guenter Oct 4 '11 at 7:01
I am using Debian 6, Windows XP, Windows 7. – Noros Oct 4 '11 at 7:36
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.