Thread
:
Modification date in shell script
View Single Post
m_stolle
2008-03-05 , 21:42
Posts: 118 | Thanked: 26 times | Joined on Feb 2008
#
2
stat should be your friend...
filename=foo
date=`stat -c '%y' $filename`
or, to get seconds since epoch (more machine usable)
date=`stat -c '%y' $filename`
man stat on a your friendly neighborhood Linux machine will tell you more. Unfortunately, for some reason, stat isn't installed by default on the N8x0...
Martin
Quote & Reply
|
m_stolle
View Public Profile
Send a private message to m_stolle
Find all posts by m_stolle