>>>>> "Paul" == Paul Harwood <[EMAIL PROTECTED]> writes:
Paul> I am trying to compare a file's modified timestamp with the current date. Paul> I can use 'stat' to get the timestamp of the file but am not sure how to compare it to the localtime(). More importantly I want to be able to quantify the difference in days, month, hours and minutes. Paul> Any suggestions? If you ask for "-M $file < 1", that's all files modified within the past 24 hours. That's generally a lot more useful than "current date". Current in what timezone? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]