From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078609810351.tru64-unix-managers.marc@archive.invalid> From: "BCN (Bios Computing and Networks)" Date: Fri, 14 Mar 1997 00:01:41 +0000 To: tru64-unix-managers Subject: SUMMARY: Altering date/time format for "ls" ? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078609810351 My original question: Hello OSF-managers, I am currently writing a script that requires the output from the "ls -l" command (date/time field) to be normalised. At present, files older than 6 months have the format -rwxr-xr-x 1 bin bin 2203 Jul 25 1995 ttysrch ...and files less than 6 months have the format -rw-r--r-- 1 root system 26 Mar 3 14:51 united.awk I need them all to be shown in the first format. Also, AIX (apparently) has a command called "istat" that will show the three timestamps of a file all at once. Does Digital Unix have a similar command? Any help would be greatly appreciated, ------------------------------------------------------------------------------- Many thanks to Kazuro Furukawa, Dejan Muhamedagic, Matthew Calthrop, Rainer Landes and Kurt Carlson for their replies. Some of the replies suggested creating a new "locale source code definition file" and using the "localedef" command to make a new locale. Thanks for the suggestion, but it all looked a bit too difficult to me! Another suggestion was to write a short c program that called the "stat" function (see 'man 2 stat'), which returns all information about a particular file (including the three datestamps in a consistent format!). Kazuro Furukawa was kind enough to send some source code to do this. Thanks again to all who responded, David Shaw United Energy, Australia.