[foxboro] Shell script problem datetimestamp of a file

Hi List,

how is it possible to retrieve the datetime stamp (year month day hour
minute) of a file within a shell script?

The "ls -l" command provides that kind of information in different ways
but never complete. Instead of getting the english title for the month
do I need the 2 digits.

# ls -l
-rw-r--r--   1 root     other        633 Mar 12  2006
a_file_with_date_only
-r--r--r--   1 root     sys         7728 Dec 11 09:06
a_file_without_the_year
#

Regards,
Andreas
 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             http://www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: