How to find a file modified more than once

Hi All,

How to find a file modified more than once....

Thanks in advance

It is not really possible to do that without making some assumptions

  1. first time file is wirtten - ctime of the file is one minute (or less) then file mtime
  2. any file mtime more than one minute later than file ctime has been modified again.

That is the limit. Assuming that meets your needs what OS and shell are you using?

You cannot know for sure how many times a file has been modified, unless you keep a record of some sort (e.g. you have a log for each occurrence of a file modification. Assuming each entry is on a new line, you can just grep the log file for all entries using the file name as a pattern. Unfortunately, I believe you do not have such a log, and that is why you are asking the question in the first place. Sorry...