A quick demo using stat:-
knoppix@Microknoppix:~$ ls -l xxx -rw-r--r-- 1 knoppix knoppix 11 Jul 30 00:01 xxx knoppix@Microknoppix:~$ perl -MPOSIX=strftime -E ' > say strftime q{%c}, localtime( ( stat q{xxx} )[ 9 ] );' Sat 30 Jul 2011 00:01:18 UTC knoppix@Microknoppix:~$
I hope this is helpful.
Cheers,
JohnGG
In reply to Re: How can I tell when a file was last modified
by johngg
in thread How can I tell when a file was last modified
by palkia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |