The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
compare update time of files
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
compare update time of files
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
05-27-2003
cbkihong
Advisor
Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
A dirty
perl
script, not knowing if this is what you want:
#!/usr/bin/
perl
-w
$f1 = $ARGV[0];
$f2 = $ARGV[1];
print abs((stat($f1))[9] - (stat($f2))[9])/60, "\n";
Pass the two filenames as params
cbkihong
View Public Profile
Visit cbkihong's homepage!
Find all posts by cbkihong
Find cbkihong's past nominations received
Find cbkihong's present nominations given