Amit Sharma wrote: > But -M option gives -M Script start time minus file modification > time, in days. > But I need the difference in seconds between 2 different files and > not with the script.
Well, you should have said that. -M is easiest way to compare two files to see if one is older or newer. For the difference in seconds between file2 and file1, you can use: $secs = ((-M 'file1') - (-M 'file2')) * 86_400 or $secs = (stat 'file2')[9] - (stat 'file1')[9] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]