The only way I know to do it is to write a program that uses fstat to return that information in a useful format. Tell me the format that you want and I'll send you a source file and executable for Solaris. On the other hand, depending on what you want to do, you may find 'make' to be useful. Long ago, I wrote a set of makefiles and scripts to copy displays to machines if the dates had changed on them. Regards, =20 Alex Johnson Invensys Systems, Inc. 10900 Equity Drive Houston, TX 77041 713.329.8472 (voice) 713.329.1700 (fax) 713.329.1600 (switchboard) alex.johnson@xxxxxxxxxxxxxxxx -----Original Message----- From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On Behalf Of Weiss, Andreas Sent: Friday, December 15, 2006 3:41 AM To: foxboro@xxxxxxxxxxxxx Subject: [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 =20 =20 _______________________________________________________________________ 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 =20 foxboro mailing list: http://www.freelists.org/list/foxboro to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Djoin to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Dleave =20 Confidentiality Notice: =0AThe information contained in this electronic m= essage and any attachment(s) to this message are intended for the exclusi= ve use of the recipient(s) and may contain confidential, privileged or pr= oprietary information. If you are not the intended recipient, please noti= fy the sender immediately, delete all copies of this message and any atta= chment(s). Any other use of the E-Mail by you is prohibited.=0A _______________________________________________________________________ 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