find last modification time of file in timestamp format in solaris-urgent
how to find last modification time of a file in timestamp format in solaris?in linux i could do it by help of stat command.but stat command doesnot work in solaris.please help.its urgently needed.Message was edited by: rahularora
# 1
I don't know what 'timestamp format' means.
Usually 'ls -l' is sufficient. You could also get a copy of 'stat' for solaris or compile it.
Finally, I might use 'perl' for more information on a file.
perl -le 'print scalar localtime ((lstat shift)[9])' <filename>
--
Darren