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.