The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Find the age of a file in Minutes
.
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
:
Find the age of a file in Minutes
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
03-18-2008
Perderabo
Unix Daemon
Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
Here is how I would do in ksh:
perl
-e 'printf "%d\n" ,(time()-((stat(shift))[9]))/60;' file1.txt
Sorry, but sometimes ksh falls short and you need
perl
for an assist.
Perderabo
View Public Profile
Find all posts by Perderabo
Find Perderabo's past nominations received
Find Perderabo's present nominations given