The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 05-27-2003
cbkihong cbkihong is offline Forum Advisor  
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