By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,933 Members | 1,675 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,933 IT Pros & Developers. It's quick & easy.

Modified files

P: 15
Hi,

Can anyone help me on how do i check if a file is modified or not? In case I have 10 files and only two files are modified at a time how will i get the files only which are modified at that particular time? Is there any perl for this?
Oct 21 '08 #1
Share this Question
Share on Google+
2 Replies


numberwhun
Expert Mod 2.5K+
P: 3,503
I am not quite sure where you are going with this, but if you want to check and see if a file has been modified, then you are going to have to have something to compare it against. Like a back up copy for instance. Once you make any changes, you immediately back up the file to an archive and you can then compare the two and see if they are identical. Is that what you are asking?

Regards,

Jeff
Oct 21 '08 #2

P: 15
Yes exactly. I have backed up a copy all 10 files. Out of the present 10 files two files are modified and then I am including the backed up data into them. But currently even for the files which are not modified, the back up is getting added. What i want it only for the two files to have New+back up data. The other files have to be left alone.
Oct 21 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.