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.


Cookies make it easier for us to provide you with our services. With the usage of our services you permit us to use cookies.
More information Ok Decline