Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.