tips.paddyonline.net

If you need tips & tricks, here they are...

Joomla! AddThis

Share

Quick script to check times on a file

Quick script to check times on a file

#!/bin/tcsh -f

foreach FILE ($*)
echo "File: $FILE"
echo "Last Accessed : 'stat -f %Sa $FILE'"
echo "Last Modified : 'stat -f %Sm $FILE'"
echo "Last Changed : 'stat -f %Sc $FILE'"
end


Will output something like

File: TestFile
Last Accessed : Mar 17 09:27:47 2011
Last Modified : Mar 17 09:27:47 2011
Last Changed : Mar 17 09:27:47 2011

for each file that is requested to the script.

Add comment

Security code
Refresh

Please consider supporting our efforts.


We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.